Skip to content

Commit

Permalink
Check for returned errors
Browse files Browse the repository at this point in the history
  • Loading branch information
aerostitch committed Oct 12, 2018
1 parent 5757092 commit 6deffe9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ds.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 6deffe9

Please sign in to comment.