mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
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
Block a user