Skip to content

Commit

Permalink
Display full error from vault. (#1350)
Browse files Browse the repository at this point in the history
  • Loading branch information
n-g authored Nov 12, 2024
1 parent 2f615b2 commit 86d9089
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/providers/vault/secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func secretProvider(ctx context.Context, conf cfg.Configuration, secretId secret

secretResp, err := vaultClient.Secrets.KvV2Read(ctx, secretPath, vaultclient.WithMountPath(secretMount))
if err != nil {
return nil, fnerrors.InvocationError("vault", "failed to read a secret")
return nil, fnerrors.InvocationError("vault", "failed to read a secret: %w", err)
}

if secretResp.Data.Data == nil {
Expand Down

0 comments on commit 86d9089

Please sign in to comment.