]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
libvirt: fix error message when connection can't be opened
authorJán Tomko <jtomko@redhat.com>
Tue, 26 Feb 2013 12:00:08 +0000 (13:00 +0100)
committerJán Tomko <jtomko@redhat.com>
Tue, 26 Feb 2013 14:01:03 +0000 (15:01 +0100)
VIR_ERR_NO_CONNECT already contains "no connection driver available".

This patch changes:
no connection driver available for No connection for URI hello
to:
no connection driver available for hello

Bug: https://bugzilla.redhat.com/show_bug.cgi?id=851413

src/libvirt.c

index 934997a3a4ca344c72887d1250a44a2f1f792925..8a28e4a946bf72b67d7be69f6471d61442daf5f5 100644 (file)
@@ -1216,7 +1216,7 @@ do_open(const char *name,
     if (!ret->driver) {
         /* If we reach here, then all drivers declined the connection. */
         virLibConnError(VIR_ERR_NO_CONNECT,
-                        _("No connection for URI %s"),
+                        "%s",
                         NULLSTR(name));
         goto failed;
     }