mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-23 23:38:21 +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:
|
||||
# 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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user