evolutility-server-node
evolutility-server-node copied to clipboard
Missing error information when database connection fails
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.
I hope to add error checking already mentioned by @david-pfx
Cool. Thanks.