diff options
author | Markus Armbruster <armbru@redhat.com> | 2015-01-13 16:16:35 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2015-01-29 10:02:18 +0100 |
commit | a6c90cbccdc07d51d4bbff71d2680f1a2c287370 (patch) | |
tree | 91e766f466192c3e291bd7ebf77158e200b35eae /monitor.c | |
parent | bb5224edfb1e6f94aabaa8070d11c8f95f8ae277 (diff) |
qmp: Eliminate silly QERR_COMMAND_NOT_FOUND macro
The QERR_ macros are leftovers from the days of "rich" error objects.
They're used with error_set() and qerror_report(), and expand into the
first *two* arguments. This trickiness has become pointless. Clean
this one up.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -5081,7 +5081,8 @@ static void handle_qmp_command(JSONMessageParser *parser, QList *tokens) trace_handle_qmp_command(mon, cmd_name); cmd = qmp_find_cmd(cmd_name); if (!cmd || invalid_qmp_mode(mon, cmd)) { - qerror_report(QERR_COMMAND_NOT_FOUND, cmd_name); + qerror_report(ERROR_CLASS_COMMAND_NOT_FOUND, + "The command %s has not been found", cmd_name); goto err_out; } |