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

Michael Tokarev posted 8 patches 9 months, 3 weeks ago
[PATCH 5/8] qemu-img: simplify --repair error message
Posted by Michael Tokarev 9 months, 3 weeks ago
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
---
 qemu-img.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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:
-- 
2.39.2