Skip to content

Commit

Permalink
Merge pull request #1082 from neXenio/feat/improve-vault-error-message
Browse files Browse the repository at this point in the history
feat(vault): improve error message for vault `authentication error`
  • Loading branch information
ademariag authored Nov 11, 2023
2 parents e6db61a + 9fe00b0 commit e1d513c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kapitan/refs/vault_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ def authenticate(self):

if not self.is_authenticated():
self.adapter.close()
raise VaultError("Vault Authentication Error, Environment Variables defined?")
raise VaultError(
"Vault Authentication Error, check if token in env:VAULT_TOKEN is valid and not expired"
)


def get_env(parameter):
Expand Down

0 comments on commit e1d513c

Please sign in to comment.