From 9fe00b0ba54903602a8d5a6f6c560220c966a695 Mon Sep 17 00:00:00 2001 From: Matteo Voges Date: Mon, 30 Oct 2023 15:44:30 +0100 Subject: [PATCH] feat(vault): improve error message for `Authenticationerror` --- kapitan/refs/vault_resources.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kapitan/refs/vault_resources.py b/kapitan/refs/vault_resources.py index a67e7080d..5a581c616 100644 --- a/kapitan/refs/vault_resources.py +++ b/kapitan/refs/vault_resources.py @@ -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):