diff options
| author | Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> | 2021-09-20 14:55:35 +0300 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2021-10-06 10:25:55 +0200 |
| commit | f053b7e8005d7f72c2a8e686c4779f75b0ae631f (patch) | |
| tree | 6f02a1143c37f024ba84d8cf1ced3b787a227561 /scripts/qapi/expr.py | |
| parent | 621d17378a40509757d5e03eb1c2f5305ff76df3 (diff) | |
| download | focaccia-qemu-f053b7e8005d7f72c2a8e686c4779f75b0ae631f.tar.gz focaccia-qemu-f053b7e8005d7f72c2a8e686c4779f75b0ae631f.zip | |
block: bdrv_insert_node(): fix and improve error handling
- use ERRP_GUARD(): function calls error_prepend(), so it must use ERRP_GUARD(), otherwise error_prepend() would not be called when passed errp is error_fatal - drop error propagation, handle return code instead - for symmetry, do error_prepend() for the second failure Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Message-Id: <20210920115538.264372-3-vsementsov@virtuozzo.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'scripts/qapi/expr.py')
0 files changed, 0 insertions, 0 deletions