bhyve: Replace VIR_ERROR with standard vir*Error in state driver init

Replace VIR_ERROR with virReportError
This commit is contained in:
Jovanka Gulicoska 2016-05-23 20:35:56 +02:00 committed by Cole Robinson
parent 9cdac8afc9
commit 86d1ae0479

View File

@ -88,8 +88,9 @@ bhyveAutostartDomain(virDomainObjPtr vm, void *opaque)
ret = virBhyveProcessStart(data->conn, data->driver, vm,
VIR_DOMAIN_RUNNING_BOOTED, 0);
if (ret < 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());
}
}
virObjectUnlock(vm);