fix(registry): unswallow error

Signed-off-by: Hidde Beydals <hidde@hhh.computer>
pull/12429/head
Hidde Beydals 1 year ago
parent 4a5e26b86c
commit da3c666a82
No known key found for this signature in database
GPG Key ID: 979F380FC2341744

@ -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)
} }
// A blank returned username and password value is a bearer token // A blank returned username and password value is a bearer token
if username == "" && password != "" { if username == "" && password != "" {

Loading…
Cancel
Save