Improve error message (#82829)

* Improve error message

* Update pkg/credentialprovider/config.go

Co-Authored-By: Jordan Liggitt <jordan@liggitt.net>

Co-authored-by: Jordan Liggitt <jordan@liggitt.net>
This commit is contained in:
martin-schibsted 2020-03-20 08:02:36 +01:00 committed by GitHub
parent 990a3802f6
commit 9ba2bd57fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -309,7 +309,7 @@ func decodeDockerConfigFieldAuth(field string) (username, password string, err e
parts := strings.SplitN(string(decoded), ":", 2)
if len(parts) != 2 {
err = fmt.Errorf("unable to parse auth field")
err = fmt.Errorf("unable to parse auth field, must be formatted as base64(username:password)")
return
}