From 9927ca627432a5dc43fbbce2371b17d11ed27ed6 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Mon, 11 May 2009 14:55:52 +0000 Subject: [PATCH] Report detailed error if initial connection open attempt fails --- ChangeLog | 5 +++++ src/virsh.c | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 741c88a5cf..98cb653405 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon May 11 15:55:22 BST 2009 Daniel P. Berrange + + * src/virsh.c: Report detailed error if initial connection open + attempt fails + Mon May 11 16:03:37 CEST 2009 Daniel Veillard * src/lxc_container.c: drop LXC CAP_SYS_BOOT capability to avoid diff --git a/src/virsh.c b/src/virsh.c index 2e41c02072..cb32ede266 100644 --- a/src/virsh.c +++ b/src/virsh.c @@ -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; } -- GitLab