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:
Dan Stillman 2016-04-27 02:32:58 -04:00
parent 1502985d98
commit 05de47149f
3 changed files with 10 additions and 8 deletions

View file

@ -246,6 +246,7 @@ ConcurrentCaller.prototype._processNext = function () {
this._processNext();
});
e.handledRejection = true;
f.deferred.reject(e);
});
return true;