1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-24 15:58:08 +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:
# 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()