]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: error: Reword some unused error messages
authorPeter Krempa <pkrempa@redhat.com>
Thu, 13 Dec 2018 11:32:29 +0000 (12:32 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 14 Dec 2018 12:28:43 +0000 (13:28 +0100)
Simplify wording of the error string for VIR_ERR_OPEN_FAILED and
VIR_ERR_CALL_FAILED. The error codes itself are currently unused so it
will not impact any client.

This will simplify upcomming patch which refactors how we convert these.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/util/virerror.c

index a32a1fbd4125ceb7f7beb5089da46ae771661f5e..0dc95810ca5fb9e98f6fbc9dd2dd8fd412e671d9 100644 (file)
@@ -1069,9 +1069,9 @@ virErrorMsg(virErrorNumber error, const char *info)
             break;
         case VIR_ERR_CALL_FAILED: /* DEPRECATED, use VIR_ERR_NO_SUPPORT */
             if (info == NULL)
-                errmsg = _("library call failed, possibly not supported");
+                errmsg = _("library call failed");
             else
-                errmsg = _("library call %s failed, possibly not supported");
+                errmsg = _("library call failed: %s");
             break;
         case VIR_ERR_XML_ERROR:
             if (info == NULL)
@@ -1093,9 +1093,9 @@ virErrorMsg(virErrorNumber error, const char *info)
             break;
         case VIR_ERR_OPEN_FAILED:
             if (info == NULL)
-                errmsg = _("failed to open configuration file for reading");
+                errmsg = _("failed to open configuration file");
             else
-                errmsg = _("failed to open %s for reading");
+                errmsg = _("failed to open configuration file %s");
             break;
         case VIR_ERR_READ_FAILED:
             if (info == NULL)