diff --git a/src/index.ts b/src/index.ts index 625d729..8c57217 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,6 +8,7 @@ import { getCommit } from "./utils/getCommit"; async function init() { process.on("unhandledRejection", (error: any) => { console.dir(error?.stack); + process.exit(1); }); await initDb(); @@ -22,4 +23,4 @@ async function init() { }); } -init(); \ No newline at end of file +init();