From b4a9858f37634b9a21d3394c6891ae1e28bb0cee Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 29 Apr 2016 23:31:49 -0400 Subject: [PATCH] Log message for unhandled promise rejection when string is thrown --- resource/bluebird.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resource/bluebird.js b/resource/bluebird.js index 9765e3689f..9e2ae6677b 100644 --- a/resource/bluebird.js +++ b/resource/bluebird.js @@ -100,7 +100,7 @@ return; } - self.debug('Possibly unhandled rejection:\n\n' + e.message); + self.debug('Possibly unhandled rejection:\n\n' + (e.message || e)); throw e; }); return;