diff options
author | Markus Armbruster <armbru@redhat.com> | 2015-03-14 10:23:15 +0100 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2015-03-16 17:07:25 +0100 |
commit | 97a2ca7ae6bccb78b2acf10d6d3eebd1e9f3bbdc (patch) | |
tree | 25abced7ed198105664532d3eba950dbc4638987 /qemu-img.c | |
parent | 0c304110bd7092cbabff55b45193e13549b53e40 (diff) |
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>
Diffstat (limited to 'qemu-img.c')
-rw-r--r-- | qemu-img.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/qemu-img.c b/qemu-img.c index 5af6f455df..82d907801e 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -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; } |