Haha-Yes/events/process/unhandledRejection.js

7 lines
157 B
JavaScript
Raw Permalink Normal View History

2022-06-17 02:08:26 +02:00
export default {
name: 'unhandledRejection',
async execute(error) {
return console.error(`\x1b[31mUncaught Promise Rejection: ${error}\x1b[37m`);
2022-06-17 02:14:14 +02:00
},
};