]> xenbits.xensource.com Git - libvirt.git/commitdiff
virterror: Fix error message for VIR_ERR_INVALID_ARG
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 26 Aug 2011 09:44:05 +0000 (11:44 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 26 Aug 2011 14:40:42 +0000 (16:40 +0200)
When a detail message is presented, nobody expects prefix 'invalid
argument in' but something more general, like 'invalid argument:'.

src/util/virterror.c

index c5babb10365a3d16ec4ebf39c1b685ccdb43bbb6..9b8a340145ee71d6763d7501cd580cea3388f7b1 100644 (file)
@@ -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)