Skip to content

Commit

Permalink
Augment error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
rdinardi-bw committed Oct 7, 2024
1 parent 4354320 commit 83fa123
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,15 +105,15 @@ func GetVaultToken() error {
if vault.IsKubeServiceAccountJwtOnFile(kubernetesJwtLocation) {
token, err := vault.GetVaultTokenKubeJwtAuth(vaultRoleName, vaultAddr, kubernetesJwtLocation)
if err != nil {
return fmt.Errorf("vault error: %w", err)
return fmt.Errorf("vault kube auth error: %w", err)
}
vaultToken = token
return nil
}

token, err := vault.GetVaultTokenAwsAuth(vaultRoleName, vaultAddr, vaultAwsAuthMount)
if err != nil {
return fmt.Errorf("vault error: %w", err)
return fmt.Errorf("vault aws auth error: %w", err)
}
vaultToken = token

Expand Down

0 comments on commit 83fa123

Please sign in to comment.