Skip to content

Commit

Permalink
bug: fix uncatchable thrown errror
Browse files Browse the repository at this point in the history
this is aiming to fix the error: `Uncaught (in promise) Error`, generated by the fact that it is impossible to catch the error that is thrown by the helloMessage promise --- also, that thrown seems unneeded, emitting the error should be enough in this context.
  • Loading branch information
apasare authored Sep 4, 2021
1 parent 850786d commit 021d59d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/bus.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ class MessageBus extends EventEmitter {
})
.catch((err) => {
this.emit('error', err);
throw new Error(err);
});
}

Expand Down

0 comments on commit 021d59d

Please sign in to comment.