From d88734d2ea768315aa3b83496db71a92b05482ea Mon Sep 17 00:00:00 2001 From: G0PG Date: Tue, 16 Apr 2024 12:11:24 -0500 Subject: [PATCH] putting key name when error retrieving --- 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