qemu: migration: Improve p2p error if we can't open conn

By actually showing the Open() error to the user
This commit is contained in:
Cole Robinson 2013-05-28 15:12:01 -04:00
parent fd8fa33b54
commit 5751fc4f4e

View File

@ -3472,7 +3472,8 @@ static int doPeer2PeerMigrate(virQEMUDriverPtr driver,
qemuDomainObjExitRemote(vm);
if (dconn == NULL) {
virReportError(VIR_ERR_OPERATION_FAILED,
_("Failed to connect to remote libvirt URI %s"), dconnuri);
_("Failed to connect to remote libvirt URI %s: %s"),
dconnuri, virGetLastErrorMessage());
virObjectUnref(cfg);
return -1;
}