[PATCH 7/8] qemuAgentCheckError: Rewort error if neither return nor error is found

Peter Krempa via Devel posted 8 patches 9 months ago
[PATCH 7/8] qemuAgentCheckError: Rewort error if neither return nor error is found
Posted by Peter Krempa via Devel 9 months ago
From: Peter Krempa <pkrempa@redhat.com>

Disambiguate the case from other types of error.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
---
 src/qemu/qemu_agent.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/qemu/qemu_agent.c b/src/qemu/qemu_agent.c
index d4eb4897a4..ee0921eca6 100644
--- a/src/qemu/qemu_agent.c
+++ b/src/qemu/qemu_agent.c
@@ -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;
     }
-- 
2.48.1