Skip to content

Commit

Permalink
Fix: Catch uncaught promise rejection when trying to connect to mongo (
Browse files Browse the repository at this point in the history
…#29)

* add-snowflake-role: Add role to snowflake setup params

* remove duplicate role field

* remove duplicate role field on type

Co-authored-by: Jon Wolfe <jon.wolfe@doxy.me>
  • Loading branch information
JonathanWolfe and Jon Wolfe committed Jul 19, 2021
1 parent 6721cc7 commit 0796406
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/back-end/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@ async function init() {
await queueInit();
})();
}
await initPromise;
try {
await initPromise;
} catch (err) {
console.error(err);
process.exit(1);
}
}

if (!process.env.NO_INIT) {
Expand Down

0 comments on commit 0796406

Please sign in to comment.