Skip to content

Commit

Permalink
fix: use uncaughtException to catch missing exceptions
Browse files Browse the repository at this point in the history
Ref #4098
  • Loading branch information
robertsLando committed Jan 27, 2025
1 parent dfa47a9 commit 4905e0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1598,7 +1598,7 @@ async function gracefuShutdown() {
return process.exit()
}

process.on('unhandledRejection', (reason) => {
process.on('uncaughtException', (reason) => {
const stack = (reason as any).stack || ''
logger.error(
// eslint-disable-next-line @typescript-eslint/no-base-to-string
Expand Down

0 comments on commit 4905e0c

Please sign in to comment.