From: Ján Tomko Date: Tue, 26 Feb 2013 12:00:08 +0000 (+0100) Subject: libvirt: fix error message when connection can't be opened X-Git-Tag: v1.0.3-rc2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=633d859b7375ff33c8307addf92683bc05ac8798;p=thirdparty%2Flibvirt.git libvirt: fix error message when connection can't be opened 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 --- diff --git a/src/libvirt.c b/src/libvirt.c index 934997a3a4..8a28e4a946 100644 --- a/src/libvirt.c +++ b/src/libvirt.c @@ -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; }