mirror of https://gitee.com/openkylin/libvirt.git
Fix virsh error message when -d arg is not numeric
This commit is contained in:
parent
c66bf97003
commit
a7d65ee9c1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue