From: Peter Krempa Date: Mon, 18 Jul 2016 09:21:06 +0000 (+0200) Subject: qemu: Improve error message in virDomainGetVcpus X-Git-Tag: v2.2.0-rc1~162 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd976f786cc241be8b62ee44a08ce27158fa386c;p=thirdparty%2Flibvirt.git qemu: Improve error message in virDomainGetVcpus If the VM is offline we can't retrieve the runtime statistical information. Pinning could be retrieved but there are separate APIs for that. --- diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index dbdacbae22..4a5191f8d6 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -5284,9 +5284,8 @@ qemuDomainGetVcpus(virDomainPtr dom, goto cleanup; if (!virDomainObjIsActive(vm)) { - virReportError(VIR_ERR_OPERATION_INVALID, - "%s", - _("cannot list vcpu pinning for an inactive domain")); + virReportError(VIR_ERR_OPERATION_INVALID, "%s", + _("cannot retrieve vcpu information for inactive domain")); goto cleanup; }