Skip to content

Commit

Permalink
Lets try handling weird cubic errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Nakroma committed Aug 30, 2022
1 parent df1221a commit 3f02d3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/wow-classic/scans.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms))
if (prod) {
process.on('uncaughtException', (err) => {
console.log(err)
process.exit(1)
if (err.statusCode !== 500) process.exit(1)
})
process.on('unhandledRejection', (err) => {
console.log(err)
Expand Down

0 comments on commit 3f02d3f

Please sign in to comment.