Skip to content

Commit f5528fa

Browse files
committed
propagate connection stream errors
1 parent 01161c2 commit f5528fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/connection.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ p.connect = function(port, host) {
4646
self.emit(msg.name, msg);
4747
}
4848
});
49+
50+
this.stream.on('error', function(error) {
51+
self.emit('error', error);
52+
});
4953
};
5054

5155
p.startup = function(config) {

0 commit comments

Comments
 (0)