Skip to content

Commit

Permalink
[fix] add an error listeners to the reactors in the pipe chain
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrugzz committed May 26, 2013
1 parent 65ece42 commit e55229c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/godot/reactor/reactor.js
Expand Up @@ -64,8 +64,9 @@ Reactor.prototype.createStream = function (source) {
}

return this.reactors.reduce(function (last, nextOptions) {
last.on('error', function (err) { console.log(err) });
return last.pipe(
wrapStream(nextOptions.Factory, nextOptions.args || [])
);
}, source);
};
};

0 comments on commit e55229c

Please sign in to comment.