From cd4c7df4e1ea257f8ea14a0304f1219270ae8cc5 Mon Sep 17 00:00:00 2001 From: Jonathan Grundman Date: Tue, 16 Apr 2024 16:55:26 -0500 Subject: [PATCH] putting key name when error retrieving (#39) Co-authored-by: G0PG --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 630902e..fdd5dbf 100644 --- a/main.go +++ b/main.go @@ -381,7 +381,7 @@ func get(key string, service *ssm.SSM) (string, error) { WithDecryption: &withDecryption, }) if err != nil { - return "", err + return "", fmt.Errorf("error retrieving key %s: %w", key, err) } value := *param.Parameter.Value