Skip to content

Commit

Permalink
fix(registry): unswallow error
Browse files Browse the repository at this point in the history
Signed-off-by: Hidde Beydals <hidde@hhh.computer>
  • Loading branch information
hiddeco committed Sep 28, 2023
1 parent 4a5e26b commit da3c666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/registry/client.go
Expand Up @@ -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 != "" {
Expand Down

0 comments on commit da3c666

Please sign in to comment.