fix(executor): surface pre-execution errors (#1917)

This commit is contained in:
Siddharth Ganesan
2025-11-12 01:05:48 -08:00
committed by GitHub
parent 5cea73fe91
commit 41066b84d2

View File

@@ -1004,6 +1004,22 @@ export function useWorkflowExecution() {
},
logs: [],
}
// Add error to console
addConsole({
input: {},
output: {},
success: false,
error: data.error,
durationMs: data.duration || 0,
startedAt: new Date(Date.now() - (data.duration || 0)).toISOString(),
endedAt: new Date().toISOString(),
workflowId: activeWorkflowId,
blockId: 'workflow',
executionId: executionId || uuidv4(),
blockName: 'Workflow Execution',
blockType: 'workflow',
})
},
},
})