From d623c58aa10ee64f82b18283c317e4c1858128e1 Mon Sep 17 00:00:00 2001 From: Adam Smith Date: Tue, 20 Jun 2023 22:53:43 -0400 Subject: [PATCH] display errors from failed commits --- napalm_vyos/vyos.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/napalm_vyos/vyos.py b/napalm_vyos/vyos.py index 23e3bde..b123864 100644 --- a/napalm_vyos/vyos.py +++ b/napalm_vyos/vyos.py @@ -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()