diff mbox series

[5/8] qemu-img: simplify --repair error message

Message ID 30941c389c32d0432d6d065c146a02b02189c55a.1707328606.git.mjt@tls.msk.ru (mailing list archive)
State New, archived
Headers show
Series Attempt to make qemu-img options consistent and --help working | expand

Commit Message

Michael Tokarev Feb. 7, 2024, 5:58 p.m. UTC
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 qemu-img.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/qemu-img.c b/qemu-img.c
index e7d5b1b24b..31c1891b43 100644
--- a/qemu-img.c
+++ b/qemu-img.c
@@ -829,8 +829,8 @@  static int img_check(const char *cmdname, int argc, char **argv)
             } else if (!strcmp(optarg, "all")) {
                 fix = BDRV_FIX_LEAKS | BDRV_FIX_ERRORS;
             } else {
-                error_exit(cmdname, "Unknown option value for -r "
-                           "(expecting 'leaks' or 'all'): %s", optarg);
+                error_exit(cmdname,
+                           "--repair expects 'leaks' or 'all' not '%s'", optarg);
             }
             break;
         case OPTION_OUTPUT: