Skip to content

Commit ce173f8

Browse files
techiesharkbrianc
authored andcommittedJun 27, 2016
Fix error event doc in README (#15)
- making error event example code start by acquiring `pool` in the same way it is done in the example at the top for `create`
1 parent d316ef5 commit ce173f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ Emitted whenever an idle client in the pool encounters an error. This is common
189189
Example:
190190

191191
```js
192-
var pg = require('pg')
193-
var pool = new pg.Pool()
192+
const Pool = require('pg-pool')
193+
const pool = new Pool()
194194

195195
// attach an error handler to the pool for when a connected, idle client
196196
// receives an error by being disconnected, etc

0 commit comments

Comments
 (0)
Please sign in to comment.