diff --git a/pkg/registry/client.go b/pkg/registry/client.go index 0dfa6926f..c75b03970 100644 --- a/pkg/registry/client.go +++ b/pkg/registry/client.go @@ -103,7 +103,7 @@ func NewClient(options ...ClientOption) (*Client, error) { if ok { username, password, err := dockerClient.Credential(ref.Registry) if err != nil { - return nil, errors.New("unable to retrieve credentials") + return nil, fmt.Errorf("unable to retrieve credentials: %w", err) } // A blank returned username and password value is a bearer token if username == "" && password != "" {