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 <[email protected]>
(cherry picked from commit da3c666)
  • Loading branch information
hiddeco authored and mattfarina committed Oct 12, 2023
1 parent 0e7ec78 commit 06e4fb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/registry/client.go
Original file line number Diff line number Diff line change
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)
}
authHeader(username, password, &headers)
}
Expand Down

0 comments on commit 06e4fb1

Please sign in to comment.