Skip to content

Commit

Permalink
Add disableErrorHandler option
Browse files Browse the repository at this point in the history
  • Loading branch information
MadLittleMods committed Nov 9, 2016
1 parent f9d24bc commit 5671155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ Client.prototype = {
});

/* Custom error handler */
if (this.errorHandler) {
if (!options.disableErrorHandler && this.errorHandler) {
return promise.catch(this.errorHandler);
}

Expand Down

0 comments on commit 5671155

Please sign in to comment.