fix issues
This commit is contained in:
@@ -87,13 +87,17 @@ async function bootstrap() {
|
||||
|
||||
// Handle uncaught errors
|
||||
process.on('uncaughtException', (error) => {
|
||||
console.error('🚨 Uncaught Exception:', error.message);
|
||||
console.error('🚨 Uncaught Exception:', error.stack ?? error.message);
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
process.on('unhandledRejection', (reason: unknown) => {
|
||||
console.error('🚨 Unhandled Rejection:', reason instanceof Error ? reason.message : reason);
|
||||
if (reason instanceof Error) {
|
||||
console.error('🚨 Unhandled Rejection:', reason.stack ?? reason.message);
|
||||
} else {
|
||||
console.error('🚨 Unhandled Rejection:', reason);
|
||||
}
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
bootstrap();
|
||||
bootstrap();
|
||||
|
||||
Reference in New Issue
Block a user