Merge pull request #12429 from hiddeco/fix-swallowed-err

fix(registry): unswallow error
pull/12472/head
Matt Farina 9 months ago committed by GitHub
commit ff8f0276ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)
}
authHeader(username, password, &headers)
}

Loading…
Cancel
Save