Skip to content

Commit

Permalink
Check for error in Reindexer
Browse files Browse the repository at this point in the history
  • Loading branch information
olivere authored and Dylan Jennings committed Aug 7, 2017
1 parent c5744df commit ecbf429
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions reindexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ func (ix *Reindexer) Do() (*ReindexerResponse, error) {
scanner = scanner.Size(ix.size)
}
cursor, err := scanner.Do()
if err != nil {
return nil, err
}

bulk := ix.targetClient.Bulk()

Expand Down

0 comments on commit ecbf429

Please sign in to comment.