Skip to content

Commit

Permalink
putting key name when error retrieving (#39)
Browse files Browse the repository at this point in the history
Co-authored-by: G0PG <[email protected]>
  • Loading branch information
jgrundman and G0PG committed Apr 16, 2024
1 parent ad0c0c6 commit cd4c7df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd4c7df

Please sign in to comment.