log updates for run block (error objects are filtered out in Sentry) (#3230)

This commit is contained in:
Jonathan Dobson
2025-08-19 09:43:00 -04:00
committed by GitHub
parent 458b7e43ab
commit 273d0b0edf

View File

@@ -333,6 +333,7 @@ function NodeHeader({
debugSessionId: debugSession?.debug_session_id,
browserSessionId: debugSession?.browser_session_id,
error,
detail,
});
toast({
variant: "destructive",
@@ -376,18 +377,20 @@ function NodeHeader({
description: "The workflow has been successfully canceled.",
});
},
onError: (error) => {
onError: (error: AxiosError) => {
const detail = (error.response?.data as { detail?: string })?.detail;
log.error("Cancel block: error", {
workflowPermanentId,
blockLabel,
debugSessionId: debugSession?.debug_session_id,
browserSessionId: debugSession?.browser_session_id,
error,
detail,
});
toast({
variant: "destructive",
title: "Error",
description: error.message,
description: detail ?? error.message,
});
},
});