mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 09:18:08 +00:00
When a dynamips command failed display the full command to the user
Ref #825
This commit is contained in:
parent
35c2e2fcc4
commit
9872fc09b7
@ -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-':
|
||||
|
Loading…
Reference in New Issue
Block a user