]> xenbits.xensource.com Git - libvirt.git/commitdiff
Report detailed error if initial connection open attempt fails
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 11 May 2009 14:55:52 +0000 (14:55 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 11 May 2009 14:55:52 +0000 (14:55 +0000)
ChangeLog
src/virsh.c

index 741c88a5cfccdb913cce5ff567b777adea9b7889..98cb653405435b0a13f1983564a5b2baea47478e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon May 11 15:55:22 BST 2009 Daniel P. Berrange <berrange@redhat.com>
+
+       * src/virsh.c: Report detailed error if initial connection open
+       attempt fails
+
 Mon May 11 16:03:37 CEST 2009 Daniel Veillard <veillard@redhat.com>
 
        * src/lxc_container.c: drop LXC CAP_SYS_BOOT capability to avoid
index 2e41c0207218b74be4d9a06a1e4a9b1c9ee7d0c6..cb32ede266e6b41624f0769a71afb414a32615b2 100644 (file)
@@ -6876,6 +6876,7 @@ vshInit(vshControl *ctl)
      * such as "help".
      */
     if (!ctl->conn) {
+        virshReportError(ctl);
         vshError(ctl, FALSE, "%s", _("failed to connect to the hypervisor"));
         return FALSE;
     }