Skip to content

Commit 9ba2bd5

Browse files
Improve error message (kubernetes#82829)
* Improve error message * Update pkg/credentialprovider/config.go Co-Authored-By: Jordan Liggitt <[email protected]> Co-authored-by: Jordan Liggitt <[email protected]>
1 parent 990a380 commit 9ba2bd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/credentialprovider/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ func decodeDockerConfigFieldAuth(field string) (username, password string, err e
309309

310310
parts := strings.SplitN(string(decoded), ":", 2)
311311
if len(parts) != 2 {
312-
err = fmt.Errorf("unable to parse auth field")
312+
err = fmt.Errorf("unable to parse auth field, must be formatted as base64(username:password)")
313313
return
314314
}
315315

0 commit comments

Comments
 (0)