From cca42872ed137ed50c05c8284849cd29eadcbc97 Mon Sep 17 00:00:00 2001 From: hkrish Date: Sun, 21 Apr 2013 18:11:58 +0200 Subject: [PATCH] Throw more errors --- Boolean.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Boolean.js b/Boolean.js index cc29d1c1..ba7f044a 100644 --- a/Boolean.js +++ b/Boolean.js @@ -506,6 +506,9 @@ while( firstNode.uniqueID !== nextNode.uniqueID ){ path.add( nextNode.getSegment( true ) ); nextNode.visited = true; + if( !nextNode.linkOut ){ + throw { name: 'Boolean Error', message: 'No link found at node id: ' + nextNode.id }; + } nextNode = nextNode.linkOut.nodeOut; } path.closed = true;