From 7824cb5ed7ef0c779d8091e1910eef2ae0a1ab2d Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Mon, 23 Nov 2020 14:38:25 +0100 Subject: [PATCH] util: use %w when forwarding an error Signed-off-by: Niels de Vos --- 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 5ab04ced7..da1e31dca 100644 --- a/internal/util/vault.go +++ b/internal/util/vault.go @@ -136,7 +136,7 @@ func InitVaultKMS(kmsID string, config, secrets map[string]string) (EncryptionKM var vaultCAVerify bool vaultCAVerify, err = strconv.ParseBool(verifyCA) if err != nil { - return nil, fmt.Errorf("failed to parse 'vaultCAVerify' for vault <%s> kms config: %s", + return nil, fmt.Errorf("failed to parse 'vaultCAVerify' for vault <%s> kms config: %w", kmsID, err) } vaultConfig[api.EnvVaultInsecure] = !vaultCAVerify