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:
parent
5fbaca75b4
commit
99a51b07ac
@ -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__",
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user