]> Git Repo - qemu.git/commitdiff
qemu-img: Fix convert, amend error messages for unknown options
authorMarkus Armbruster <[email protected]>
Sat, 14 Mar 2015 09:23:15 +0000 (10:23 +0100)
committerKevin Wolf <[email protected]>
Mon, 16 Mar 2015 16:07:25 +0000 (17:07 +0100)
Message quality regressed in commit dc523cd.

Signed-off-by: Markus Armbruster <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
qemu-img.c
tests/qemu-iotests/061.out

index 5af6f455dfbe396ac3ef680854f28cc641da0dc0..82d907801ed12b29da0feb1a659aa6885dcbccb2 100644 (file)
@@ -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;
         }
index e70f9834d8e7fdfe5350dfe9a4bab218d9b95310..5ec248f79b41dfd0a43fa24941c8a21a4d1e8ebb 100644 (file)
@@ -288,7 +288,6 @@ qemu-img: Error while amending options: Invalid argument
 Unknown compatibility level 0.42.
 qemu-img: Error while amending options: Invalid argument
 qemu-img: Invalid parameter 'foo'
-qemu-img: Invalid options for file format 'qcow2'
 Changing the cluster size is not supported.
 qemu-img: Error while amending options: Operation not supported
 Changing the encryption flag is not supported.
This page took 0.034407 seconds and 4 git commands to generate.