mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 07:17:44 +00:00
virterror: Fix error message for VIR_ERR_INVALID_ARG
When a detail message is presented, nobody expects prefix 'invalid argument in' but something more general, like 'invalid argument:'.
This commit is contained in:
parent
6b434da6bf
commit
6c7299d47d
@ -792,9 +792,9 @@ virErrorMsg(virErrorNumber error, const char *info)
|
||||
break;
|
||||
case VIR_ERR_INVALID_ARG:
|
||||
if (info == NULL)
|
||||
errmsg = _("invalid argument in");
|
||||
errmsg = _("invalid argument");
|
||||
else
|
||||
errmsg = _("invalid argument in %s");
|
||||
errmsg = _("invalid argument: %s");
|
||||
break;
|
||||
case VIR_ERR_OPERATION_FAILED:
|
||||
if (info != NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user