Skip to content

Commit

Permalink
fix the bug of can not get batchOpError
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoujunlong committed Sep 12, 2016
1 parent 8a1046e commit ece0133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (p *batchOpDecoder) DecodeError(bodyBytes []byte, resource string) (decoded
bodyReader.Seek(0, 0)
errResp := ErrorResponse{}
err = decoder.Decode(&errResp)
if err != nil {
if err == nil {
decodedError = ParseError(errResp, resource)
}
} else {
Expand Down

0 comments on commit ece0133

Please sign in to comment.