mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-09 15:07:55 -05:00
fix(executor): surface pre-execution errors (#1917)
This commit is contained in:
committed by
GitHub
parent
5cea73fe91
commit
41066b84d2
@@ -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',
|
||||
})
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user