qapi/commands: refactor error handling code
commit167d913f34aa469fa30b0c51a04d8d2b9a5f1fa5
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Wed, 26 Jan 2022 16:11:25 +0000 (26 17:11 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 27 Jan 2022 10:25:09 +0000 (27 11:25 +0100)
tree451eb32cb8b455c6a39954d194d18f44ec69fe94
parent4e86df17326d2afaf74622c082d906ed3f96d1d7
qapi/commands: refactor error handling code

Move error_propagate() to if (err) and make "if (err)" block mandatory.
This is to simplify further commit, which will bring trace events
generation for QMP commands.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20220126161130.3240892-3-vsementsov@virtuozzo.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
docs/devel/qapi-code-gen.rst
scripts/qapi/commands.py