diff options
author | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-07-28 23:05:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-28 23:05:37 +0300 |
commit | 023b70d98889570d628684ac123c8dee34edb609 (patch) | |
tree | a7fb0f1000a04c673023dbaa7c20e87f26a0b0e0 /src | |
parent | e526709a102319b735dff45fb25e665a6897d862 (diff) | |
download | vyos-1x-023b70d98889570d628684ac123c8dee34edb609.tar.gz vyos-1x-023b70d98889570d628684ac123c8dee34edb609.zip |
T6605: restore configd error formatting to be consistent with CLI (#3868) (#3878)
(cherry picked from commit 645f24908c9b338adc56ecc83f8c44d0b0206550)
Co-authored-by: John Estabrook <jestabro@vyos.io>
Diffstat (limited to 'src')
-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 a7306afd1..49eb6799c 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) |