Loading lib/rp.js +2 −2 Original line number Diff line number Diff line 'use strict'; var Bluebird = require('./bluebird-fresh.js'), printRejectionReason = require('./bluebird-captured-trace-fresh.js').possiblyUnhandledRejection, printRejectionReason = require('./bluebird-captured-trace-fresh.js').formatAndLogError, _ = require('lodash'), chalk = require('chalk'); Loading Loading @@ -155,7 +155,7 @@ request.Request.prototype.promise = function RP$promise() { Bluebird.onPossiblyUnhandledRejection(function (reason, promise) { // For whatever reason we don't see _rp_in_use here at all after then is called. --> We compare to false instead of true. if (promise._rp_in_use !== false) { printRejectionReason(reason); printRejectionReason(reason, 'Possibly unhandled '); } // else: The user did not call .then(...) // --> We need to assume that this request is processed with a callback or a pipe etc. Loading Loading
lib/rp.js +2 −2 Original line number Diff line number Diff line 'use strict'; var Bluebird = require('./bluebird-fresh.js'), printRejectionReason = require('./bluebird-captured-trace-fresh.js').possiblyUnhandledRejection, printRejectionReason = require('./bluebird-captured-trace-fresh.js').formatAndLogError, _ = require('lodash'), chalk = require('chalk'); Loading Loading @@ -155,7 +155,7 @@ request.Request.prototype.promise = function RP$promise() { Bluebird.onPossiblyUnhandledRejection(function (reason, promise) { // For whatever reason we don't see _rp_in_use here at all after then is called. --> We compare to false instead of true. if (promise._rp_in_use !== false) { printRejectionReason(reason); printRejectionReason(reason, 'Possibly unhandled '); } // else: The user did not call .then(...) // --> We need to assume that this request is processed with a callback or a pipe etc. Loading