Display node-error only on executing nodes (#2274)

*  Dot not display errors on disconnected nodes

*  Fix some more inconsistencies
This commit is contained in:
Jan
2021-10-06 12:02:31 -05:00
committed by GitHub
parent 9dbf6e5f6d
commit f7148bdd77
5 changed files with 70 additions and 10 deletions

View File

@@ -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.',