commit
5d24537714
8
goes.go
8
goes.go
@ -357,10 +357,10 @@ func (req *Request) Run() (*Response, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return esResp, err
|
return esResp, err
|
||||||
}
|
}
|
||||||
err = json.Unmarshal(body, &esResp.Raw)
|
err = json.Unmarshal(body, &esResp.Raw)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return esResp, err
|
return esResp, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if req.api == "_bulk" && esResp.Errors {
|
if req.api == "_bulk" && esResp.Errors {
|
||||||
|
Loading…
Reference in New Issue
Block a user