mirror of https://gitee.com/openkylin/libvirt.git
Report detailed error if initial connection open attempt fails
This commit is contained in:
parent
9959a1dd9d
commit
9927ca6274
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue