Return a suitable error message if we can't find a matching emulator

This commit is contained in:
Guido Günther 2010-10-08 14:16:46 +02:00
parent b2d7cedeb9
commit 2ae5086c97

View 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,