diff --git a/postgresql.js b/postgresql.js index 7b846d8..c151f4a 100644 --- a/postgresql.js +++ b/postgresql.js @@ -221,6 +221,9 @@ module.exports = function (RED) { try { if (msg.pgConfig) { client = new Client(msg.pgConfig); + client.on('error', (err) => { + node.error(err.message); + }); await client.connect(); } else { client = await node.config.pgPool.connect();