Skip to content

Commit

Permalink
T6605: restore configd error formatting to be consistent with CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
jestabro committed Jul 24, 2024
1 parent 565277a commit 4ea6c81
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/services/vyos-configd
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4ea6c81

Please sign in to comment.