fix: [CDE-712]: return original error in the error chain (#3643)

* fix: [CDE-712]: add error in the error chain
This commit is contained in:
Deepak Bhatt 2025-04-07 08:26:18 +00:00 committed by Harness
parent 0a34d44cdd
commit 30197968cc

View File

@ -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