Permalink
Browse files

added a default error listener

  • Loading branch information...
1 parent cd5550a commit e82eab872d2a44e57b1dc7fb658176d7eeeb1c93 @impronunciable committed Nov 26, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/tuiter.js
View
@@ -245,5 +245,7 @@ NJStream.prototype.emitAPIEvents = function() {
}
});
+
+ this.on('error', function(){});
this.req.on('response', function(res){ self.res = res; });
};

0 comments on commit e82eab8

Please sign in to comment.