From 6d901e829582ac2fb7d263ad8079e320e094985b Mon Sep 17 00:00:00 2001 From: Jeremy Date: Thu, 12 Mar 2015 16:53:22 -0600 Subject: [PATCH] Fixes issue when VBoxManage returns an error. --- gns3server/modules/virtualbox/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gns3server/modules/virtualbox/__init__.py b/gns3server/modules/virtualbox/__init__.py index e0394373..b746fbf9 100644 --- a/gns3server/modules/virtualbox/__init__.py +++ b/gns3server/modules/virtualbox/__init__.py @@ -105,8 +105,7 @@ class VirtualBox(BaseManager): if process.returncode: # only the first line of the output is useful vboxmanage_error = stderr_data.decode("utf-8", errors="ignore") - log.warn("VBoxManage has returned an error: {}".format(vboxmanage_error)) - raise VirtualBoxError(vboxmanage_error.splitlines()[0]) + raise VirtualBoxError("VirtualBox has returned an error: {}".format(vboxmanage_error)) return stdout_data.decode("utf-8", errors="ignore").splitlines()