Stop once recursion depth has been reached
While testing I had the router allow infinite loops, but had support all along to stop them if they occur. Though a message signaled to the user using a status message would be mice, currently just log to console. Signed-off-by: Collin J. Doering <collin.doering@rekahsoft.ca>
This commit is contained in:
parent
1866ea9aa6
commit
0bb23967c0
|
@ -140,7 +140,7 @@
|
|||
numRecur: spec.numRecur + 1,
|
||||
recurDepth: spec.recurDepth });
|
||||
} else {
|
||||
callback(routes[i].rewriteGetUrl(spec.url), spec.url, routes[i].ajaxCallbacks);
|
||||
console.log("Exceeded recursion depth for router");
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue