1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-25 00:08:11 +00:00

Fixes issue when VBoxManage returns an error.

This commit is contained in:
Jeremy 2015-03-12 16:53:22 -06:00
parent 4f7b896a6a
commit 6d901e8295

View File

@ -105,8 +105,7 @@ class VirtualBox(BaseManager):
if process.returncode: if process.returncode:
# only the first line of the output is useful # only the first line of the output is useful
vboxmanage_error = stderr_data.decode("utf-8", errors="ignore") vboxmanage_error = stderr_data.decode("utf-8", errors="ignore")
log.warn("VBoxManage has returned an error: {}".format(vboxmanage_error)) raise VirtualBoxError("VirtualBox has returned an error: {}".format(vboxmanage_error))
raise VirtualBoxError(vboxmanage_error.splitlines()[0])
return stdout_data.decode("utf-8", errors="ignore").splitlines() return stdout_data.decode("utf-8", errors="ignore").splitlines()