diff --git a/lib/api_errors.go b/lib/api_errors.go index 08e2abc..f552abb 100644 --- a/lib/api_errors.go +++ b/lib/api_errors.go @@ -11,7 +11,7 @@ type InvalidStatusCodeError string type NotFoundError string type InvalidRequestError string -var genericAuthorizationError AutorizationError = "autorization failed" +var genericAuthorizationError AutorizationError = "autorization rejected by registry" var genericMalformedResponseError MalformedResponseError = "malformed response" func (e AutorizationError) Error() string { diff --git a/lib/auth/authenticator.go b/lib/auth/authenticator.go index 0fb69bb..2f1972d 100644 --- a/lib/auth/authenticator.go +++ b/lib/auth/authenticator.go @@ -49,7 +49,7 @@ func (a *authenticator) Authenticate(c *Challenge, ignoreCached bool) (t Token, } if authResponse.StatusCode != http.StatusOK { - err = errors.New(fmt.Sprintf("authentication failed with code %d", authResponse.StatusCode)) + err = errors.New(fmt.Sprintf("authentification against auth server failed with code %d", authResponse.StatusCode)) return }