From cbdd4de630798f5c7f81fc010bdf088c634be3ba Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Thu, 13 Aug 2015 22:20:21 +0100 Subject: [PATCH] Errors in subflows propagate up to nearest catch node --- red/nodes/Flow.js | 113 ++++++++++++++++++++-------------------------- 1 file changed, 49 insertions(+), 64 deletions(-) diff --git a/red/nodes/Flow.js b/red/nodes/Flow.js index 8b0844340..671d5583c 100644 --- a/red/nodes/Flow.js +++ b/red/nodes/Flow.js @@ -68,17 +68,23 @@ function createSubflow(sf,sfn,subflows) { node.z = sfn.id; newNodes.push(node); } + // Look for any catch nodes and update their scope ids // Update all subflow interior wiring to reflect new node IDs for (i=0;i