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, 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,
}); });
}, },
}); });