Fixing IndicesExist function
This commit is contained in:
parent
aa49572462
commit
ae25be9f6f
8
goes.go
8
goes.go
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user