Hi guys, what would be the best way to extract exc...
# ask-community
j
Hi guys, what would be the best way to extract exception/error details using a
run_status_sensor
? I have something like this:
Copy code
@run_status_sensor(DagsterRunStatus.FAILURE)
def slack_on_failure_sensor(context):
 # log error details here
how can i go about accessing the error log from the context?
c
Hi Jesse, within the context you can get the failure event:
Copy code
context.failure_event.message
j
great, I'll give this a shot