summaryrefslogtreecommitdiff
path: root/src/services/vyos-configd
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2024-07-25 02:15:25 -0500
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-07-25 13:40:57 +0000
commit4e1e00b91ed15b875a361f84778d35ce2847f076 (patch)
tree93b07e599d6a42d10b7bed7da284ce285b864cda /src/services/vyos-configd
parent160a24d61d9adb108de9a210311ccd10a93f819f (diff)
downloadvyos-1x-4e1e00b91ed15b875a361f84778d35ce2847f076.tar.gz
vyos-1x-4e1e00b91ed15b875a361f84778d35ce2847f076.zip
T6605: restore configd error formatting to be consistent with CLI (#3868)mergify/bp/sagitta/pr-3868
(cherry picked from commit 645f24908c9b338adc56ecc83f8c44d0b0206550)
Diffstat (limited to 'src/services/vyos-configd')
-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 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)