]> Git Repo - qemu.git/commitdiff
QMP: Use QERR_QMP_BAD_INPUT_OBJECT_MEMBER
authorLuiz Capitulino <[email protected]>
Wed, 7 Apr 2010 17:49:37 +0000 (14:49 -0300)
committerLuiz Capitulino <[email protected]>
Mon, 26 Apr 2010 14:17:09 +0000 (11:17 -0300)
The QERR_QMP_BAD_INPUT_OBJECT error is going to be used only
for two problems: the input is not an object or the "execute"
key is missing.

Signed-off-by: Luiz Capitulino <[email protected]>
monitor.c

index c25d551f5c31145406e399d612ec4a0205e54a96..0611b29d1a363fa8c535e4097d47814fcb8a9d52 100644 (file)
--- a/monitor.c
+++ b/monitor.c
@@ -4404,7 +4404,7 @@ static void handle_qmp_command(JSONMessageParser *parser, QList *tokens)
         qerror_report(QERR_QMP_BAD_INPUT_OBJECT, "execute");
         goto err_input;
     } else if (qobject_type(obj) != QTYPE_QSTRING) {
-        qerror_report(QERR_QMP_BAD_INPUT_OBJECT, "string");
+        qerror_report(QERR_QMP_BAD_INPUT_OBJECT_MEMBER, "execute", "string");
         goto err_input;
     }
 
This page took 0.031699 seconds and 4 git commands to generate.