mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-03 05:51:15 +02:00
Fixes issue when VBoxManage returns an error.
This commit is contained in:
1 parent
4f7b896a6a
commit
6d901e8295
1 file changed
+1
-2
@@ -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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user