From a962cccd0a29eac2f2f1bd9e1dd110d4721e4b39 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Fri, 30 Jul 2021 09:52:44 +0200 Subject: [PATCH] util: correct error message when connecting to Vault fails Signed-off-by: Niels de Vos (cherry picked from commit 83167e2ac55068422d59f7eb0f5c53280d7735b2) --- internal/util/vault.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/util/vault.go b/internal/util/vault.go index 8fb004666..9b80615cf 100644 --- a/internal/util/vault.go +++ b/internal/util/vault.go @@ -249,7 +249,7 @@ func (vc *vaultConnection) initCertificates(config map[string]interface{}, secre func (vc *vaultConnection) connectVault() error { v, err := vault.New(vc.vaultConfig) if err != nil { - return fmt.Errorf("failed creating new Vault Secrets: %w", err) + return fmt.Errorf("failed connecting to Vault: %w", err) } vc.secrets = v