From bca0d9f5804e55786430e3930a9b196de3286d37 Mon Sep 17 00:00:00 2001 From: Andreas Lind Date: Mon, 4 Apr 2016 00:24:15 +0200 Subject: [PATCH] oathbreaker: Avoid breaking with non-Bluebird promises. --- lib/oathbreaker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/oathbreaker.js b/lib/oathbreaker.js index 3ddcf0966..135bee6b4 100644 --- a/lib/oathbreaker.js +++ b/lib/oathbreaker.js @@ -46,7 +46,7 @@ module.exports = function oathbreaker(value) { throw error; } else if (evaluated) { return value; - } else { + } else if (value._captureStackTrace) { value._captureStackTrace(true); }