Fixing IndicesExist function

This commit is contained in:
r--w 2015-10-02 14:20:57 +02:00
parent 8fa9ff1c53
commit aa49572462

View File

@ -358,11 +358,9 @@ func (req *Request) Run() (*Response, error) {
return esResp, err
}
json.Unmarshal(body, &esResp.Raw)
}
err = json.Unmarshal(body, &esResp)
if err != nil {
return &Response{Status: statusCode}, err
if err != nil {
return &Response{Status: statusCode}, err
}
}
if req.api == "_bulk" && esResp.Errors {