alexandrainst / node-red-contrib-postgresql

Node-RED node for PostgreSQL, supporting parameters, split, back-pressure
https://flows.nodered.org/node/node-red-contrib-postgresql
Apache License 2.0
31 stars 13 forks source link

How to handle database errors? #44

Closed jl-unitedlocating closed 1 year ago

jl-unitedlocating commented 1 year ago

Is there a way to identify and handle database errors (such as a table or database not existing)? Currently it seems like the plugin is just putting the error into the msg.payload and then passing it along like a normal message, but I don't want to display the errors (which includes the SQL that caused the error) to the users.

jl-unitedlocating commented 1 year ago

Never mind, this is an issue with one of the other flows we have.