Throw more errors

This commit is contained in:
hkrish 2013-04-21 18:11:58 +02:00
parent 43d3243179
commit cca42872ed

View file

@ -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;