mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-14 23:24:23 +03:00
libxl: Replace VIR_ERROR with standard vir*Error in state driver init
Replace VIR_ERROR with virReportError
This commit is contained in:
parent
86d1ae0479
commit
1223f7b23e
@ -319,9 +319,9 @@ libxlAutostartDomain(virDomainObjPtr vm,
|
||||
|
||||
if (vm->autostart && !virDomainObjIsActive(vm) &&
|
||||
libxlDomainStartNew(driver, vm, false) < 0) {
|
||||
VIR_ERROR(_("Failed to autostart VM '%s': %s"),
|
||||
vm->def->name,
|
||||
virGetLastErrorMessage());
|
||||
virReportError(VIR_ERR_INTERNAL_ERROR,
|
||||
_("Failed to autostart VM '%s': %s"),
|
||||
vm->def->name, virGetLastErrorMessage());
|
||||
goto endjob;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user