Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Commit

Permalink
changing to a patio error
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin Smith committed Jan 25, 2016
1 parent 9101c8e commit 3b6a3dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/adapters/postgres.js
Expand Up @@ -503,9 +503,10 @@ var DB = define(Database, {
self.logWarn(err.stack);
ret.errored = true;
self.pool.removeConnection(ret);
getPatio().emit('error', err);
self.connectionErrors.emit('error', err);
});

conn.on("end", function () {
if (!ret.closed) {
self.logWarn("Connection from " + self.uri + " unexpectedly ended");
Expand Down

0 comments on commit 3b6a3dd

Please sign in to comment.