Model-driven REST APIs for CRUD and more, written in Javascript, using Node.js, Express, and PostgreSQL.
GNU Affero General Public License v3.0
112
stars
33
forks
source link
Missing error information when database connection fails #8
Open
david-pfx opened 6 years ago
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.