]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
bhyve: Replace VIR_ERROR with standard vir*Error in state driver init
authorJovanka Gulicoska <jovanka.gulicoska@gmail.com>
Mon, 23 May 2016 18:35:56 +0000 (20:35 +0200)
committerCole Robinson <crobinso@redhat.com>
Mon, 23 May 2016 19:42:46 +0000 (15:42 -0400)
Replace VIR_ERROR with virReportError

src/bhyve/bhyve_driver.c

index c58286fd8798ae3f685d9698f29569838b96b241..c4051a1c1655c2895f54b44c95abfc88c9368b1c 100644 (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);