Catching errors using a catch node
You can catch errors thrown by nodes and handle them in a separate flow.
- Open Node-RED.
- Add a catch node from the input category to the workspace.

A catch node can only catch errors on the same tab. If an error is thrown in a subflow and there is no catch node present in that subflow, then the error is propagated upwards to the flow containing the subflow.
- Double-click the catch node to open the Edit node dialogue.
- In the Catch errors from drop-down list, select whether the node shall catch errors from all nodes on the tab or only from selected nodes.
- If you chose selected nodes, enable the check boxes to select the nodes whose errors you want to catch.
- Click Done to apply your changes.
- Add more nodes to the workspace and connect them to a flow with the catch node being the first node.
- Once you deploy the flow, the catch node injects a message containing error information into the flow, whenever an error is thrown by any of the monitored nodes.