We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This code at database.js:238 throws an undefined error if the connection fails.
undefined
pool.connect(function(err, client, done) { client.query(sql, function(err, data) {
pool.connect(function(err, client, done) {
client.query(sql, function(err, data) {
It should instead display the contents of the err variable.
err
The text was updated successfully, but these errors were encountered:
I hope to add error checking already mentioned by @david-pfx
Sorry, something went wrong.
Cool. Thanks.
No branches or pull requests
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.The text was updated successfully, but these errors were encountered: