Skip to content

Commit 0f1184d

Browse files
committed
fix(main): add error handling during bootstrap startup
1 parent 003a943 commit 0f1184d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/backend/src/main.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,7 @@ async function bootstrap() {
6060

6161
await app.listen(config.PORT);
6262
}
63-
void bootstrap();
63+
bootstrap().catch((err: unknown) => {
64+
console.error('[bootstrap] Fatal error during startup:', err);
65+
process.exit(1);
66+
});

0 commit comments

Comments
 (0)