fix issues

This commit is contained in:
2026-01-01 15:17:09 +01:00
parent f001df3744
commit aee182b09e
17 changed files with 241 additions and 442 deletions

View File

@@ -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();