We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 935de89 commit 1451c28Copy full SHA for 1451c28
errors.go
@@ -193,7 +193,7 @@ type KmsError struct {
193
194
func NewKmsErrorFromBytes(sbody []byte) *KmsError {
195
var errResp types.ErrorResponse
196
- if e := json.Unmarshal(sbody, &errResp); e == nil && errResp.Errors != nil {
+ if e := json.Unmarshal(sbody, &errResp); e == nil {
197
return newKmsErrorFromRestResponse(errResp)
198
}
199
return nil
0 commit comments