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

When a dynamips command failed display the full command to the user

Ref #825
This commit is contained in:
Julien Duponchelle 2016-12-12 16:38:55 +01:00
parent 35c2e2fcc4
commit 9872fc09b7
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -298,7 +298,7 @@ class DynamipsHypervisor:
# Does it contain an error code?
if self.error_re.search(data[-1]):
raise DynamipsError(data[-1][4:])
raise DynamipsError("Dynamips error when running command '{}': {}".format(command, data[-1][4:]))
# Or does the last line begin with '100-'? Then we are done!
if data[-1][:4] == '100-':