mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
error: Use error_report_err() where appropriate (again)
Same Coccinelle semantic patch as in commit565f65d. We now use the original error whole instead of just its message obtained with error_get_pretty(). This avoids suppressing its hint (see commit50b7b00), but I don't think the errors touched in this commit can come with hints. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <1450452927-8346-3-git-send-email-armbru@redhat.com>
This commit is contained in:
parent
85b01e0960
commit
4fffeb5e19
8 changed files with 9 additions and 12 deletions
|
|
@ -749,7 +749,7 @@ int main(int argc, char **argv)
|
|||
exp = nbd_export_new(blk, dev_offset, fd_size, nbdflags, nbd_export_closed,
|
||||
&local_err);
|
||||
if (!exp) {
|
||||
error_report("%s", error_get_pretty(local_err));
|
||||
error_report_err(local_err);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue