Handling unhandledRejection error
This commit is contained in:
parent
e60a904e1d
commit
98b5190b8f
@ -14,4 +14,8 @@ try {
|
||||
}
|
||||
|
||||
if (!process.argv.includes("--debug"))
|
||||
global.console.debug = () => null;
|
||||
global.console.debug = () => null;
|
||||
|
||||
process.on('unhandledRejection', (reason, p) => {
|
||||
console.trace('Unhandled Rejection at: Promise', p, 'reason:', reason);
|
||||
});
|
||||
Loading…
Reference in New Issue
Block a user