Skip to content

Commit

Permalink
Merge pull request #1 from routedbits/yzguy/surface_error
Browse files Browse the repository at this point in the history
display errors from failed commits
  • Loading branch information
yzguy authored Jun 21, 2023
2 parents a5d3b94 + d623c58 commit cc58ee6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions napalm_vyos/vyos.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ def commit_config(self, message=""):

try:
self.device.commit()
except ValueError:
raise CommitError("Failed to commit config on the device")
except ValueError as err:
raise CommitError('\n\n{}'.format(err))

self.device.send_config_set(['save'])
self.device.exit_config_mode()
Expand Down

0 comments on commit cc58ee6

Please sign in to comment.