From ce173f8c280d1d2aaf2f1a1f6fb356d3f667325f Mon Sep 17 00:00:00 2001 From: Peter W Date: Mon, 27 Jun 2016 14:39:36 +1000 Subject: [PATCH] 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` --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a6482659..7bf558f6 100644 --- a/README.md +++ b/README.md @@ -189,8 +189,8 @@ Emitted whenever an idle client in the pool encounters an error. This is common Example: ```js -var pg = require('pg') -var pool = new pg.Pool() +const Pool = require('pg-pool') +const pool = new Pool() // attach an error handler to the pool for when a connected, idle client // receives an error by being disconnected, etc