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 {
|
export default {
|
||||||
name: 'unhandledRejection',
|
name: 'unhandledRejection',
|
||||||
once: true,
|
|
||||||
async execute(error) {
|
async execute(error) {
|
||||||
console.error('Unhandled promise rejection:', error);
|
return console.error(`\x1b[31mUncaught Promise Rejection: ${error}\x1b[37m`);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue