]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuAgentCheckError: Rewort error if neither return nor error is found
authorPeter Krempa <pkrempa@redhat.com>
Thu, 20 Mar 2025 15:17:54 +0000 (16:17 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 21 Mar 2025 16:46:08 +0000 (17:46 +0100)
Disambiguate the case from other types of error.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_agent.c

index d4eb4897a4d6e7d006460c8a719f7f6e0579ad27..ee0921eca635cc41c3145ab7d9fbd21f50fe8811 100644 (file)
@@ -1013,7 +1013,7 @@ qemuAgentCheckError(virJSONValue *cmd,
         VIR_DEBUG("Neither 'return' nor 'error' is set in the JSON reply %s: %s",
                   NULLSTR(cmdstr), NULLSTR(replystr));
         virReportError(VIR_ERR_INTERNAL_ERROR,
-                       _("unable to execute QEMU agent command '%1$s'"),
+                       _("QEMU agent command '%1$s' returned neither error nor success"),
                        qemuAgentCommandName(cmd));
         return -1;
     }