From: Peter Krempa Date: Wed, 10 Apr 2013 12:06:38 +0000 (+0200) Subject: qemu: Report also domain name in error message when domain object wasn't found X-Git-Tag: v1.0.5-rc1~141 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63b68f3cb4af0ba3e11bd7863fcea8b2f34def34;p=thirdparty%2Flibvirt.git qemu: Report also domain name in error message when domain object wasn't found 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' --- diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 4051451dac..e3acdab9af 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -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; }