mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
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:
parent
990a3802f6
commit
9ba2bd57fb
@ -309,7 +309,7 @@ func decodeDockerConfigFieldAuth(field string) (username, password string, err e
|
|||||||
|
|
||||||
parts := strings.SplitN(string(decoded), ":", 2)
|
parts := strings.SplitN(string(decoded), ":", 2)
|
||||||
if len(parts) != 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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user