mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
propagate connection stream errors
This commit is contained in:
parent
01161c2d80
commit
f5528fa7ed
@ -46,6 +46,10 @@ p.connect = function(port, host) {
|
||||
self.emit(msg.name, msg);
|
||||
}
|
||||
});
|
||||
|
||||
this.stream.on('error', function(error) {
|
||||
self.emit('error', error);
|
||||
});
|
||||
};
|
||||
|
||||
p.startup = function(config) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user