How can I set the error indicator (little red triangle) of a node in the editor?

You look at the scope property of the Catch node. If is is null/absent, then it will catch errors from any node on the tab. Otherwise the property is an array of node ids.

That said, if scope is null and uncaught is true, then it will only handle errors for nodes that aren't targeted by another Catch node in the tab.

1 Like

Perfect, thank you very much! I really appreciate your quick responses!

Are there also runtime equivalents for RED.nodes.getAllFlowNodes, RED.nodes.getAllUpstreamNodes and RED.nodes.getAllDownstreamNodes?

No. As I have explained before, the runtime does not provide very much to help you navigate the flow because it is not something we expect nodes to be doing.

Thanks a lot for the immediate response...unfortunately, I already expected such an answer

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.