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:
parent
4f7b896a6a
commit
6d901e8295
@ -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()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user