]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Improve some error messages about unsupported APIs/URIs
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 22 Jun 2010 17:38:32 +0000 (18:38 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 23 Jun 2010 13:07:39 +0000 (14:07 +0100)
If there is no driver for a URI we report

  "no hypervisor driver available"

This is bad because not all virt drivers are hypervisors (ie container
based virt).

If there is no driver support for an API we report

  "this function is not supported by the hypervisor"

This is bad for the same reason, and additionally because it is
also used for the network, interface & storage drivers.

* src/util/virterror.c: Improve error messages

src/util/virterror.c

index 96dd1e7f1a1443544526590fc8ec40acaae1067a..9f632ec245190a2fc1c43a20370fd2899bd1543c 100644 (file)
@@ -760,15 +760,15 @@ virErrorMsg(virErrorNumber error, const char *info)
             break;
         case VIR_ERR_NO_SUPPORT:
             if (info == NULL)
-                errmsg = _("this function is not supported by the hypervisor");
+                errmsg = _("this function is not supported by the connection driver");
             else
-                errmsg = _("this function is not supported by the hypervisor: %s");
+                errmsg = _("this function is not supported by the connection driver: %s");
             break;
         case VIR_ERR_NO_CONNECT:
             if (info == NULL)
-                errmsg = _("no hypervisor driver available");
+                errmsg = _("no connection driver available");
             else
-                errmsg = _("no hypervisor driver available for %s");
+                errmsg = _("no connection driver available for %s");
             break;
         case VIR_ERR_INVALID_CONN:
             if (info == NULL)