From: Guido Günther Date: Fri, 8 Oct 2010 12:16:46 +0000 (+0200) Subject: Return a suitable error message if we can't find a matching emulator X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=2ae5086c97a4020b803f8c29fe341124acee34c4;p=libvirt.git Return a suitable error message if we can't find a matching emulator --- diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c index 7a37c70313..737b255d6a 100644 --- a/src/qemu/qemu_conf.c +++ b/src/qemu/qemu_conf.c @@ -1519,8 +1519,11 @@ int qemudExtractVersion(struct qemud_driver *driver) { if ((binary = virCapabilitiesDefaultGuestEmulator(driver->caps, "hvm", ut.machine, - "qemu")) == NULL) + "qemu")) == NULL) { + qemuReportError(VIR_ERR_INTERNAL_ERROR, + _("Cannot find suitable emulator for %s"), ut.machine); return -1; + } if (stat(binary, &sb) < 0) { virReportSystemError(errno,