From b708950c0f44c27a04cd0beb625445226a7fec11 Mon Sep 17 00:00:00 2001 From: Joseph Herlant Date: Tue, 16 Oct 2018 19:33:02 -0700 Subject: [PATCH] Check for returned errors --- ds.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ds.go b/ds.go index 9733b61..58e003a 100644 --- a/ds.go +++ b/ds.go @@ -209,7 +209,11 @@ func GetSecret(tableName *string, name, version string, encContext *EncryptionCo }, TableName: tableName, } + res, err := dynamoSvc.GetItem(params) + if err != nil { + return nil, err + } cred := new(Credential)