]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: migration: Improve p2p error if we can't open conn
authorCole Robinson <crobinso@redhat.com>
Tue, 28 May 2013 19:12:01 +0000 (15:12 -0400)
committerCole Robinson <crobinso@redhat.com>
Wed, 12 Jun 2013 20:37:55 +0000 (16:37 -0400)
By actually showing the Open() error to the user
(cherry picked from commit 5751fc4f4efe25e6abb158fc86c61230303ce280)

src/qemu/qemu_migration.c

index 606194c58164b74c40537edbcd6caa73ecdd97d9..5840a6ba34e08bbc520d3227986cb6de6206e3df 100644 (file)
@@ -3512,7 +3512,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;
     }