Improve error message for updater checker rate limit (#4560)
Fixes #4556
This commit is contained in:
parent
a7a1fcd98c
commit
f3aea5e6ec
|
@ -147,8 +147,8 @@ public final class UpdateChecker {
|
||||||
// Locally built?
|
// Locally built?
|
||||||
return new RemoteVersion(BranchStatus.UNKNOWN);
|
return new RemoteVersion(BranchStatus.UNKNOWN);
|
||||||
}
|
}
|
||||||
if (connection.getResponseCode() == HttpURLConnection.HTTP_INTERNAL_ERROR) {
|
if (connection.getResponseCode() == HttpURLConnection.HTTP_INTERNAL_ERROR || connection.getResponseCode() == HttpURLConnection.HTTP_FORBIDDEN) {
|
||||||
// Github is down
|
// GitHub is down or we hit a local rate limit
|
||||||
return new RemoteVersion(BranchStatus.ERROR);
|
return new RemoteVersion(BranchStatus.ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue