mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
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…
x
Reference in New Issue
Block a user