evolutility-server-node icon indicating copy to clipboard operation
evolutility-server-node copied to clipboard

Missing error information when database connection fails

Open david-pfx opened this issue 7 years ago • 2 comments

This code at database.js:238 throws an undefined error if the connection fails.

pool.connect(function(err, client, done) { client.query(sql, function(err, data) {

It should instead display the contents of the err variable.

david-pfx avatar Oct 22 '18 01:10 david-pfx

I hope to add error checking already mentioned by @david-pfx

ganadara135 avatar May 26 '20 04:05 ganadara135

Cool. Thanks.

evoluteur avatar May 26 '20 05:05 evoluteur