mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
Correction of the "e" variable to "err" in snippet (#3123)
This commit is contained in:
parent
6cd0aeb212
commit
df0f4d19fb
@ -165,7 +165,7 @@ pool.connect((err, client, done) => {
|
||||
client.query('SELECT $1::text as name', ['pg-pool'], (err, res) => {
|
||||
done()
|
||||
if (err) {
|
||||
return console.error('query error', e.message, e.stack)
|
||||
return console.error('query error', err.message, err.stack)
|
||||
}
|
||||
console.log('hello from', res.rows[0].name)
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user