Extend HTTP 500 error handling to all 5xx codes
This commit is contained in:
parent
1a3d6d2fd9
commit
266e951f40
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ function errorHandler(err) {
|
|||
}
|
||||
}
|
||||
|
||||
if (err instanceof DiscordHTTPError && err.code === 500) {
|
||||
if (err instanceof DiscordHTTPError && err.code >= 500) {
|
||||
// Don't need stack traces on HTTP 500 errors
|
||||
// These also shouldn't count towards RECENT_DISCORD_ERROR_EXIT_THRESHOLD because they don't indicate an error in our code
|
||||
console.error(err.message);
|
||||
|
|
Loading…
Add table
Reference in a new issue