From: Michal Privoznik Date: Wed, 2 Oct 2013 11:58:40 +0000 (+0200) Subject: qemuMonitorJSONGetVirtType: Fix error message X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=ec07a9e84b39277dc31ee17bffbac2af2f83c777;p=libvirt.git qemuMonitorJSONGetVirtType: Fix error message When querying for kvm, we try to find 'enabled' field. Hence the error message should report we haven't found 'enabled' and not 'running' (which is not even in the reply). Probably a typo or copy-paste error. --- diff --git a/src/qemu/qemu_monitor_json.c b/src/qemu/qemu_monitor_json.c index 2d841616d2..fc57c00576 100644 --- a/src/qemu/qemu_monitor_json.c +++ b/src/qemu/qemu_monitor_json.c @@ -1300,7 +1300,7 @@ int qemuMonitorJSONGetVirtType(qemuMonitorPtr mon, if (virJSONValueObjectGetBoolean(data, "enabled", &val) < 0) { virReportError(VIR_ERR_INTERNAL_ERROR, "%s", - _("info kvm reply missing 'running' field")); + _("info kvm reply missing 'enabled' field")); ret = -1; goto cleanup; }