forked from Supositware/Haha-Yes
Uncaught Exception and unhandled Rejection
parent
52de74494d
commit
2c5dbdf038
@ -0,0 +1,6 @@
|
||||
export default {
|
||||
name: 'uncaughtException',
|
||||
async execute(error) {
|
||||
return console.error(`\x1b[31mUncaughtException: ${error}\x1b[37m`);
|
||||
},
|
||||
};
|
@ -1,7 +1,6 @@
|
||||
export default {
|
||||
name: 'unhandledRejection',
|
||||
once: true,
|
||||
async execute(error) {
|
||||
console.error('Unhandled promise rejection:', error);
|
||||
return console.error(`\x1b[31mUncaught Promise Rejection: ${error}\x1b[37m`);
|
||||
},
|
||||
};
|
||||
|
Loading…
Reference in New Issue