Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ESLint unhandledRejection exit code
Browse files Browse the repository at this point in the history
This is now the default nodejs/node#33021
colinrotherham committed Jun 4, 2024
1 parent 5fcda78 commit cbfc2f1
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
@@ -7,7 +7,7 @@ const logger = createLogger()
process.on('unhandledRejection', (error) => {
logger.info('Unhandled rejection')
logger.error(error)
process.exit(1)
throw error
})

/**

0 comments on commit cbfc2f1

Please sign in to comment.