monitor: Limit QError use to command handlers
authorMarkus Armbruster <armbru@redhat.com>
Fri, 6 Mar 2015 10:28:00 +0000 (11:28 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 2 Jun 2015 08:07:15 +0000 (10:07 +0200)
commit710aec915d208246891b68e2ba61b54951edc508
tree2bff8cd64d923805bfb52a9c120534f1f28960d6
parent452e0300a3521f13b6c4ba0b99a8cea3a29209f1
monitor: Limit QError use to command handlers

The previous commits narrowed use of QError to handle_qmp_command()
and its helpers monitor_protocol_emitter(), build_qmp_error_dict().
Narrow it further to just the command handler call: instead of
converting Error to QError throughout handle_qmp_command(), convert
the QError gotten from the command handler to Error, and switch the
helpers from QError to Error.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com>
monitor.c