Merge pull request #203 from stephennancekivell/resolver-access-denied-warning

Add a warning for resolver access denied errors.
This commit is contained in:
eugene yokota 2018-01-14 22:35:59 -05:00 committed by GitHub
commit b1303337ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -242,6 +242,8 @@ object GigahorseUrlHandler {
Message.debug("HTTP response status: " + status + " url=" + url)
if (status == 407 /* PROXY_AUTHENTICATION_REQUIRED */ ) {
Message.warn("Your proxy requires authentication.")
} else if (status == 401) {
Message.warn("CLIENT ERROR: 401 Unauthorized. Check your resolvers username and password.")
} else if (String.valueOf(status).startsWith("4")) {
Message.verbose("CLIENT ERROR: " + response.message() + " url=" + url)
} else if (String.valueOf(status).startsWith("5")) {