Add a warning for resolver access denied errors.

This commit is contained in:
Stephen Nancekivell 2018-01-14 19:19:20 +11:00
parent eb76b873f2
commit 375333144c
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")) {