Skip to content

Commit

Permalink
Fix ESLint unhandledRejection exit code
Browse files Browse the repository at this point in the history
This is now the default nodejs/node#33021
  • Loading branch information
colinrotherham authored and feedmypixel committed Jul 5, 2024
1 parent d6beb50 commit 11d7dc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const logger = createLogger()
process.on('unhandledRejection', (error) => {
logger.info('Unhandled rejection')
logger.error(error)
process.exit(1)
throw error
})

async function startServer() {
Expand Down

0 comments on commit 11d7dc8

Please sign in to comment.