1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Catch error loop detection nls

This commit is contained in:
Nick O'Leary 2015-06-15 15:13:35 +01:00
parent 5fbaca75b4
commit 99a51b07ac
2 changed files with 3 additions and 2 deletions

View File

@ -85,7 +85,8 @@
}, },
"flow": { "flow": {
"unknown-type": "Unknown type: __type__", "unknown-type": "Unknown type: __type__",
"missing-types": "missing types" "missing-types": "missing types",
"error-loop": "Message exceeded maximum number of catches"
}, },
"index": { "index": {
"unrecognised-id": "Unrecognised id: __id__", "unrecognised-id": "Unrecognised id: __id__",

View File

@ -758,7 +758,7 @@ Flow.prototype.handleError = function(node,logMessage,msg) {
if (msg.error.source.id === node.id) { if (msg.error.source.id === node.id) {
count = msg.error.source.count+1; count = msg.error.source.count+1;
if (count === 10) { if (count === 10) {
node.warn("Message exceeded maximum number of catches"); node.warn(Log._("nodes.flow.error-loop"));
return; return;
} }
} }