mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-01-03 22:08:28 +00:00
Improve error message for updater checker rate limit (#4560)
Fixes #4556
This commit is contained in:
parent
a7a1fcd98c
commit
f3aea5e6ec
1 changed files with 2 additions and 2 deletions
|
@ -147,8 +147,8 @@ public final class UpdateChecker {
|
|||
// Locally built?
|
||||
return new RemoteVersion(BranchStatus.UNKNOWN);
|
||||
}
|
||||
if (connection.getResponseCode() == HttpURLConnection.HTTP_INTERNAL_ERROR) {
|
||||
// Github is down
|
||||
if (connection.getResponseCode() == HttpURLConnection.HTTP_INTERNAL_ERROR || connection.getResponseCode() == HttpURLConnection.HTTP_FORBIDDEN) {
|
||||
// GitHub is down or we hit a local rate limit
|
||||
return new RemoteVersion(BranchStatus.ERROR);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue