]> git.proxmox.com Git - mirror_qemu.git/blobdiff - backends/cryptodev-vhost-user.c
backends: Improve error messages when property can no longer be set
[mirror_qemu.git] / backends / cryptodev-vhost-user.c
index 5443a59153aa4d6a0406375e23d229b853b56cbf..f9c5867e38aefb6ba2d7af5695c53d30797a64c9 100644 (file)
@@ -339,7 +339,7 @@ static void cryptodev_vhost_user_set_chardev(Object *obj,
                       CRYPTODEV_BACKEND_VHOST_USER(obj);
 
     if (s->opened) {
-        error_setg(errp, QERR_PERMISSION_DENIED);
+        error_setg(errp, "Property 'chardev' can no longer be set");
     } else {
         g_free(s->chr_name);
         s->chr_name = g_strdup(value);