Skip to content
New issue

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

Missing error information when database connection fails #8

Open
david-pfx opened this issue Oct 22, 2018 · 2 comments
Open

Missing error information when database connection fails #8

david-pfx opened this issue Oct 22, 2018 · 2 comments

Comments

@david-pfx
Copy link

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.

@ganadara135
Copy link

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

@evoluteur
Copy link
Owner

Cool. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants