mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
Display node-error only on executing nodes (#2274)
* ⚡ Dot not display errors on disconnected nodes * ⚡ Fix some more inconsistencies
This commit is contained in:
@@ -582,7 +582,14 @@ export class WorkflowExecute {
|
||||
|
||||
const startedAt = new Date();
|
||||
|
||||
const workflowIssues = workflow.checkReadyForExecution();
|
||||
const startNode = this.runExecutionData.executionData!.nodeExecutionStack[0].node.name;
|
||||
|
||||
let destinationNode: string | undefined;
|
||||
if (this.runExecutionData.startData && this.runExecutionData.startData.destinationNode) {
|
||||
destinationNode = this.runExecutionData.startData.destinationNode;
|
||||
}
|
||||
|
||||
const workflowIssues = workflow.checkReadyForExecution({ startNode, destinationNode });
|
||||
if (workflowIssues !== null) {
|
||||
throw new Error(
|
||||
'The workflow has issues and can for that reason not be executed. Please fix them first.',
|
||||
|
||||
Reference in New Issue
Block a user