mirror of https://gitee.com/openkylin/libvirt.git
Return a suitable error message if we can't find a matching emulator
This commit is contained in:
parent
b2d7cedeb9
commit
2ae5086c97
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue