Skip to content

Commit 7f38e7b

Browse files
author
Paul Devine
committed
realized i should not swallow a possible exception
1 parent ffa0c2b commit 7f38e7b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/rider.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ var rider = function(options, jobs){
2424
}
2525
}
2626

27-
this.bus.connect(function(){ });
27+
this.bus.connect(function(error) {
28+
if (error) {
29+
throw error;
30+
}
31+
});
2832
var self = this;
2933
this.bus.on('error', function(error){
3034
self.emit(error);

0 commit comments

Comments
 (0)