]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix virsh error message when -d arg is not numeric
authorEric Blake <eblake@redhat.com>
Mon, 2 Aug 2010 20:03:13 +0000 (22:03 +0200)
committerDaniel Veillard <veillard@redhat.com>
Mon, 2 Aug 2010 20:03:13 +0000 (22:03 +0200)
tools/virsh.c

index 926652a26a0b6954cdc0e7843015144ab7903fd7..cedfb5abc086cd01e7dda8bc30d7959bb60efd82 100644 (file)
@@ -11022,7 +11022,7 @@ vshParseArgv(vshControl *ctl, int argc, char **argv)
         switch (arg) {
         case 'd':
             if (virStrToLong_i(optarg, NULL, 10, &ctl->debug) < 0) {
-                vshError(ctl, _("option -d takes a numeric argument"), arg);
+                vshError(ctl, _("option -d takes a numeric argument: %s"), arg);
                 exit(EXIT_FAILURE);
             }
             break;