From 06e4fb10a66ea984d555905702775aab639f8790 Mon Sep 17 00:00:00 2001 From: Hidde Beydals Date: Thu, 28 Sep 2023 22:57:41 +0200 Subject: [PATCH] fix(registry): unswallow error Signed-off-by: Hidde Beydals (cherry picked from commit da3c666a8223376e091e362856ebf0759e16fcd6) --- pkg/registry/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/registry/client.go b/pkg/registry/client.go index 0dc6390a2..829f6b494 100644 --- a/pkg/registry/client.go +++ b/pkg/registry/client.go @@ -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) }