Fixing IndicesExist function

This commit is contained in:
r--w 2015-10-02 14:27:17 +02:00
parent aa49572462
commit ae25be9f6f

View File

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