From f5528fa7edd3e61ed396f680a987d410f6148e5c Mon Sep 17 00:00:00 2001 From: Paul Collier Date: Sat, 30 Oct 2010 18:23:54 -0700 Subject: [PATCH] propagate connection stream errors --- lib/connection.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/connection.js b/lib/connection.js index a372eff4d..e30adde7b 100644 --- a/lib/connection.js +++ b/lib/connection.js @@ -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) {