fix(registry): unswallow error

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
(cherry picked from commit da3c666a82)
release-3.13
Hidde Beydals 1 year ago committed by Matthew Farina
parent 0e7ec78e56
commit 06e4fb10a6

@ -103,7 +103,7 @@ func NewClient(options ...ClientOption) (*Client, error) {
if ok { if ok {
username, password, err := dockerClient.Credential(ref.Registry) username, password, err := dockerClient.Credential(ref.Registry)
if err != nil { 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) authHeader(username, password, &headers)
} }

Loading…
Cancel
Save