Skip to content

Commit df0f4d1

Browse files
authored
Correction of the "e" variable to "err" in snippet (brianc#3123)
1 parent 6cd0aeb commit df0f4d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/pg-pool/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ pool.connect((err, client, done) => {
165165
client.query('SELECT $1::text as name', ['pg-pool'], (err, res) => {
166166
done()
167167
if (err) {
168-
return console.error('query error', e.message, e.stack)
168+
return console.error('query error', err.message, err.stack)
169169
}
170170
console.log('hello from', res.rows[0].name)
171171
})

0 commit comments

Comments
 (0)