mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-17 21:26:13 -07:00
qemu-img: Fix convert, amend error messages for unknown options
Message quality regressed in commit dc523cd. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
0c304110bd
commit
97a2ca7ae6
2 changed files with 2 additions and 5 deletions
|
|
@ -1554,8 +1554,7 @@ static int img_convert(int argc, char **argv)
|
|||
if (options) {
|
||||
qemu_opts_do_parse(opts, options, NULL, &local_err);
|
||||
if (local_err) {
|
||||
error_report("Invalid options for file format '%s'", out_fmt);
|
||||
error_free(local_err);
|
||||
error_report_err(local_err);
|
||||
ret = -1;
|
||||
goto out;
|
||||
}
|
||||
|
|
@ -3001,8 +3000,7 @@ static int img_amend(int argc, char **argv)
|
|||
if (options) {
|
||||
qemu_opts_do_parse(opts, options, NULL, &err);
|
||||
if (err) {
|
||||
error_report("Invalid options for file format '%s'", fmt);
|
||||
error_free(err);
|
||||
error_report_err(err);
|
||||
ret = -1;
|
||||
goto out;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue