Correction of the "e" variable to "err" in snippet (#3123)

This commit is contained in:
Tunçer Damat 2024-01-10 17:22:00 +01:00 committed by GitHub
parent 6cd0aeb212
commit df0f4d19fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
})