]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
qemu: Report also domain name in error message when domain object wasn't found
authorPeter Krempa <pkrempa@redhat.com>
Wed, 10 Apr 2013 12:06:38 +0000 (14:06 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 15 Apr 2013 07:43:54 +0000 (09:43 +0200)
Report the errors as:
Domain not found: no domain with matching uuid '41414141-4141-4141-4141-414141414141' (crashtest)
instead of:
Domain not found: no domain with matching uuid '41414141-4141-4141-4141-414141414141'

src/qemu/qemu_driver.c

index 4051451dac578dc648b32df6b42a3bbe56a2175a..e3acdab9af8933828f7e7d4632e8263c8d20222e 100644 (file)
@@ -199,7 +199,8 @@ qemuDomObjFromDomain(virDomainPtr domain)
     if (!vm) {
         virUUIDFormat(domain->uuid, uuidstr);
         virReportError(VIR_ERR_NO_DOMAIN,
-                       _("no domain with matching uuid '%s'"), uuidstr);
+                       _("no domain with matching uuid '%s' (%s)"),
+                       uuidstr, domain->name);
         return NULL;
     }