Report detailed error if initial connection open attempt fails

This commit is contained in:
Daniel P. Berrange 2009-05-11 14:55:52 +00:00
parent 9959a1dd9d
commit 9927ca6274
2 changed files with 6 additions and 0 deletions

View File

@ -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

View 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;
}