mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
qemu-img create: Emit filename on error
bdrv_img_create generally does not emit the target filename, although this is pretty important information. Therefore, prepend its error message with the output filename (if an error occurs). Signed-off-by: Max Reitz <mreitz@redhat.com>
This commit is contained in:
parent
cc84d90ff5
commit
b70d8c237a
1 changed files with 1 additions and 1 deletions
|
@ -412,7 +412,7 @@ static int img_create(int argc, char **argv)
|
|||
bdrv_img_create(filename, fmt, base_filename, base_fmt,
|
||||
options, img_size, BDRV_O_FLAGS, &local_err, quiet);
|
||||
if (error_is_set(&local_err)) {
|
||||
error_report("%s", error_get_pretty(local_err));
|
||||
error_report("%s: %s", filename, error_get_pretty(local_err));
|
||||
error_free(local_err);
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue