]> xenbits.xensource.com Git - libvirt.git/commit
xenapi: Improve error message on session failure
authorMatthew Booth <mbooth@redhat.com>
Fri, 10 Jun 2011 09:18:01 +0000 (17:18 +0800)
committerDaniel Veillard <veillard@redhat.com>
Fri, 10 Jun 2011 09:18:01 +0000 (17:18 +0800)
commit006be75ee214f9b4811cabfd98eff66ae47095b1
treeddbbf299829386788aace52570ae4785be63ed19
parent08a6826a14f9ef4459fabb20c529c39edab7eb56
xenapi: Improve error message on session failure

XenAPI session login can fail for a number of reasons, but currently no
specific
reason is displayed to the user, e.g.:

virsh -c XenAPI://citrix-xen.example.com/
Enter username for citrix-xen.example.com: root
Enter root's password for citrix-xen.example.com:
error: authentication failed: (null)
error: failed to connect to the hypervisor

This patch displays the session error description on failure.
src/xenapi/xenapi_driver.c