Haha-Yes/events/process/unhandledRejection.js

7 lines
153 B
JavaScript

export default {
name: 'unhandledRejection',
once: true,
async execute(error) {
console.error('Unhandled promise rejection:', error);
}
}