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:
Michal Privoznik 2011-08-26 11:44:05 +02:00
parent 6b434da6bf
commit 6c7299d47d

View File

@ -792,9 +792,9 @@ virErrorMsg(virErrorNumber error, const char *info)
break; break;
case VIR_ERR_INVALID_ARG: case VIR_ERR_INVALID_ARG:
if (info == NULL) if (info == NULL)
errmsg = _("invalid argument in"); errmsg = _("invalid argument");
else else
errmsg = _("invalid argument in %s"); errmsg = _("invalid argument: %s");
break; break;
case VIR_ERR_OPERATION_FAILED: case VIR_ERR_OPERATION_FAILED:
if (info != NULL) if (info != NULL)