Skip to content

Commit

Permalink
Merge pull request #1 from zjlletian/master
Browse files Browse the repository at this point in the history
fix the bug of can not get batchOpError
  • Loading branch information
souriki authored Sep 12, 2016
2 parents 8a1046e + ece0133 commit dea7389
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 dea7389

Please sign in to comment.