]> xenbits.xensource.com Git - libvirt.git/commitdiff
Return a suitable error message if we can't find a matching emulator
authorGuido Günther <agx@sigxcpu.org>
Fri, 8 Oct 2010 12:16:46 +0000 (14:16 +0200)
committerGuido Günther <agx@sigxcpu.org>
Tue, 12 Oct 2010 07:07:53 +0000 (09:07 +0200)
src/qemu/qemu_conf.c

index 7a37c703134e4f0adc37e9237f11ecfdbb6e6101..737b255d6a635d0b169ec047d9918a58b8cb3e29 100644 (file)
@@ -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,