diff --git a/resource/bluebird.js b/resource/bluebird.js index 6e683fa07f..06728b4d1d 100644 --- a/resource/bluebird.js +++ b/resource/bluebird.js @@ -16,13 +16,14 @@ Promise.onPossiblyUnhandledRejection((e, promise) => { return; } - typeof Zotero !== 'undefined' && Zotero.debug('Possibly unhandled rejection:\n\n' + dump('Possibly unhandled rejection:\n\n' + (e.message ? e.message + "\n\n" + e.stack.split(/\n/) // Filter out internal Bluebird calls .filter(line => !line.includes('bluebird')) .join('\n') - : e), 1); + : e) + + '\n'); throw e; });