summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2024-07-25 02:15:25 -0500
committerGitHub <noreply@github.com>2024-07-25 10:15:25 +0300
commit645f24908c9b338adc56ecc83f8c44d0b0206550 (patch)
treebaaa5e65e2ef4fc53dd7e9c61b16824443850580
parent87741c1a7b1896a0c2f220b98a79c5d3f24e1845 (diff)
downloadvyos-1x-645f24908c9b338adc56ecc83f8c44d0b0206550.tar.gz
vyos-1x-645f24908c9b338adc56ecc83f8c44d0b0206550.zip
T6605: restore configd error formatting to be consistent with CLI (#3868)
-rwxr-xr-xsrc/services/vyos-configd5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/services/vyos-configd b/src/services/vyos-configd
index 87f7c0e25..a4b839a7f 100755
--- a/src/services/vyos-configd
+++ b/src/services/vyos-configd
@@ -143,9 +143,8 @@ def run_script(script_name, config, args) -> int:
script.generate(c)
script.apply(c)
except ConfigError as e:
- s = f'{script_name}: {repr(e)}'
- logger.error(s)
- explicit_print(session_out, session_mode, s)
+ logger.error(e)
+ explicit_print(session_out, session_mode, str(e))
return R_ERROR_COMMIT
except Exception as e:
logger.critical(e)