mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Add 'catch uncaught only' mode to Catch node
Closes #1747 This was inspired by a PR from @mauriciom75 but implemented in a different way due to some of the internal reworking done to Flow and Subflow in the dev branch
This commit is contained in:
@@ -32,7 +32,8 @@
|
||||
halt. This node can be used to catch those errors and handle them with a
|
||||
dedicated flow.</p>
|
||||
<p>By default, the node will catch errors thrown by any node on the same tab. Alternatively
|
||||
it can be targetted at specific nodes.</p>
|
||||
it can be targetted at specific nodes, or configured to only catch errors that
|
||||
have not already been caught by a 'targeted' catch node.</p>
|
||||
<p>When an error is thrown, all matching catch nodes will receive the message.</p>
|
||||
<p>If an error is thrown within a subflow, the error will get handled by any
|
||||
catch nodes within the subflow. If none exists, the error will be propagated
|
||||
|
@@ -72,13 +72,15 @@
|
||||
"catch": {
|
||||
"catch": "catch: all",
|
||||
"catchNodes": "catch: __number__",
|
||||
"catchUncaught": "catch: uncaught",
|
||||
"label": {
|
||||
"source": "Catch errors from",
|
||||
"node": "node",
|
||||
"type": "type",
|
||||
"selectAll": "select all",
|
||||
"sortByLabel": "sort by label",
|
||||
"sortByType": "sort by type"
|
||||
"sortByType": "sort by type",
|
||||
"uncaught": "Ignore errors handled by other Catch nodes"
|
||||
},
|
||||
"scope": {
|
||||
"all": "all nodes",
|
||||
|
Reference in New Issue
Block a user