Node.error - catch

I am using a node red pccc library and it has an error that I want to read. How do I read the node.error(RED._("pccc.error.badvalues")) in the editor?

That type of error cannot be caught in a flow - it only gets logged.

If make the error catchable, the call to node.error() needs to be updated to pass a message object as a second argument to the function.

If I change the code to

node.error(RED._("pccc.error.badvalues"), “Error Connecting”)

Will that work?

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