log updates for run block (error objects are filtered out in Sentry) (#3230)
This commit is contained in:
@@ -333,6 +333,7 @@ function NodeHeader({
|
|||||||
debugSessionId: debugSession?.debug_session_id,
|
debugSessionId: debugSession?.debug_session_id,
|
||||||
browserSessionId: debugSession?.browser_session_id,
|
browserSessionId: debugSession?.browser_session_id,
|
||||||
error,
|
error,
|
||||||
|
detail,
|
||||||
});
|
});
|
||||||
toast({
|
toast({
|
||||||
variant: "destructive",
|
variant: "destructive",
|
||||||
@@ -376,18 +377,20 @@ function NodeHeader({
|
|||||||
description: "The workflow has been successfully canceled.",
|
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", {
|
log.error("Cancel block: error", {
|
||||||
workflowPermanentId,
|
workflowPermanentId,
|
||||||
blockLabel,
|
blockLabel,
|
||||||
debugSessionId: debugSession?.debug_session_id,
|
debugSessionId: debugSession?.debug_session_id,
|
||||||
browserSessionId: debugSession?.browser_session_id,
|
browserSessionId: debugSession?.browser_session_id,
|
||||||
error,
|
error,
|
||||||
|
detail,
|
||||||
});
|
});
|
||||||
toast({
|
toast({
|
||||||
variant: "destructive",
|
variant: "destructive",
|
||||||
title: "Error",
|
title: "Error",
|
||||||
description: error.message,
|
description: detail ?? error.message,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user