Skip to content

Commit 1451c28

Browse files
authored
fix(errors): Allow Errors nil in KmsErrors (#20)
1 parent 935de89 commit 1451c28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ type KmsError struct {
193193

194194
func NewKmsErrorFromBytes(sbody []byte) *KmsError {
195195
var errResp types.ErrorResponse
196-
if e := json.Unmarshal(sbody, &errResp); e == nil && errResp.Errors != nil {
196+
if e := json.Unmarshal(sbody, &errResp); e == nil {
197197
return newKmsErrorFromRestResponse(errResp)
198198
}
199199
return nil

0 commit comments

Comments
 (0)