mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-18 15:55:05 +00:00
Merge pull request #552 from geon/patch-1
Added missing argument to handleError method call.
This commit is contained in:
commit
7dbc4c9845
@ -175,7 +175,7 @@ Client.prototype.connect = function(callback) {
|
||||
con.once('end', function() {
|
||||
if(self.activeQuery) {
|
||||
var disconnectError = new Error('Stream unexpectedly ended during query execution');
|
||||
self.activeQuery.handleError(disconnectError);
|
||||
self.activeQuery.handleError(disconnectError, con);
|
||||
self.activeQuery = null;
|
||||
}
|
||||
self.emit('end');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user