Skip to content

Commit

Permalink
Send error message on error_resp (#1642)
Browse files Browse the repository at this point in the history
  • Loading branch information
moshemorad authored Nov 25, 2024
1 parent dd2b6df commit f7f7a18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/robusta/core/playbooks/playbooks_event_handler_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def __run_playbook_actions(
else f"Action Exception {e.type} while processing {action.action_name} {to_safe_str(action_params)}"
)
logging.error(msg)
execution_event.response = self.__error_resp(e.type, e.code, log=False)
execution_event.response = self.__error_resp(msg, e.code, log=False)
playbooks_errors_count.labels(source).inc()
except PrometheusNotFound as e:
logging.error(str(e))
Expand Down

0 comments on commit f7f7a18

Please # to comment.