From 30197968cc6983d17e0a92537f332d497f3dabbd Mon Sep 17 00:00:00 2001 From: Deepak Bhatt Date: Mon, 7 Apr 2025 08:26:18 +0000 Subject: [PATCH] fix: [CDE-712]: return original error in the error chain (#3643) * fix: [CDE-712]: add error in the error chain --- app/gitspace/orchestrator/utils/secret.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/gitspace/orchestrator/utils/secret.go b/app/gitspace/orchestrator/utils/secret.go index c618051f1..b64470954 100644 --- a/app/gitspace/orchestrator/utils/secret.go +++ b/app/gitspace/orchestrator/utils/secret.go @@ -48,9 +48,10 @@ func ResolveSecret(ctx context.Context, secretResolverFactory *secret.ResolverFa }) if err != nil { return nil, fmt.Errorf( - "could not resolve secret type: %s, ref: %s", + "could not resolve secret type: %s, ref: %s : %w", config.GitspaceInstance.AccessType, *config.GitspaceInstance.AccessKeyRef, + err, ) } return &resolvedSecret.SecretValue, nil