From 2ae5086c97a4020b803f8c29fe341124acee34c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Fri, 8 Oct 2010 14:16:46 +0200 Subject: [PATCH] Return a suitable error message if we can't find a matching emulator --- src/qemu/qemu_conf.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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,