mirror of
https://github.com/harness/drone.git
synced 2025-05-09 17:42:13 +08:00
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:
parent
0a34d44cdd
commit
30197968cc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user