Allow marking of errors as handled for Bluebird
Set .handledRejection on an Error object to tell Bluebird that it's been handled and shouldn't be logged by onPossiblyUnhandledRejection().
This commit is contained in:
parent
1502985d98
commit
05de47149f
3 changed files with 10 additions and 8 deletions
|
@ -246,6 +246,7 @@ ConcurrentCaller.prototype._processNext = function () {
|
|||
this._processNext();
|
||||
});
|
||||
|
||||
e.handledRejection = true;
|
||||
f.deferred.reject(e);
|
||||
});
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue