diff --git a/src/set_globals.js b/src/set_globals.js index 849932e..926568b 100644 --- a/src/set_globals.js +++ b/src/set_globals.js @@ -14,4 +14,8 @@ try { } if (!process.argv.includes("--debug")) - global.console.debug = () => null; \ No newline at end of file + global.console.debug = () => null; + +process.on('unhandledRejection', (reason, p) => { + console.trace('Unhandled Rejection at: Promise', p, 'reason:', reason); +}); \ No newline at end of file