I have a i2c node which monitors a the state of a battery's charge in one of my flows it works fine however if I disconnect the battery, as expected I get an error:
I want to catch that error and prevent the inject node from activating the flow with i2c node in it, but the catch node does not catch the error, I set the catch node to catch all and also tried catching error from the i2c node generating the error but I get nothing on the catch node output.
why ? is there something i am missing ?
I also tried a status node pointing at the i2c node but I just get the following whether theirs a error or not.
If you search for node.error in that file you will see in some places the node calls it with one argument, and in some cases with two. The Catch node will only handle the calls to node.error() with two arguments - as the second argument is the message object for the Catch node.
Without a fix to the node, you won't be able to handle those errors in your flow.
oh looks like I got caught by the solution police, well I was just confirming that the suggested fix by knolleary in post #4 was actually the solution to issue raised and as he didn't mark his post as the solution I thought it was appropriate that I did to close off the post.
Clearly you think that its not appropriate, but to be honest I don't care, because the fix kindly offered by knolleary in post #4 resolved my problem.