diff options
author | Christian Breunig <christian@breunig.cc> | 2024-07-26 12:52:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-26 12:52:29 +0200 |
commit | aaaabd60e2fedd9416d9de2932af2f122b33b67f (patch) | |
tree | 723373b29db36c330993b15bb31946fb128bedaa | |
parent | 6b96def0e8760f6ff6a90cae5179600d674bbcbd (diff) | |
parent | 368cb359bfb38b7cde1c84147fd109a533c73c69 (diff) | |
download | vyos-1x-aaaabd60e2fedd9416d9de2932af2f122b33b67f.tar.gz vyos-1x-aaaabd60e2fedd9416d9de2932af2f122b33b67f.zip |
Merge pull request #3877 from vyos/mergify/bp/circinus/pr-3868circinus-temp-bot-test
T6605: restore configd error formatting to be consistent with CLI (backport #3868)
-rwxr-xr-x | src/services/vyos-configd | 5 |
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) |