We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ec9c4f commit c768538Copy full SHA for c768538
esutil/bulk_indexer.go
@@ -592,7 +592,7 @@ func (w *worker) flush(ctx context.Context) error {
592
atomic.AddUint64(&w.bi.stats.numFailed, uint64(len(w.items)))
593
// TODO(karmi): Wrap error (include response struct)
594
if w.bi.config.OnError != nil {
595
- w.bi.config.OnError(ctx, fmt.Errorf("flush: %s", err))
+ w.bi.config.OnError(ctx, fmt.Errorf("flush: %s", res.String()))
596
}
597
return fmt.Errorf("flush: %s", res.String())
598
0 commit comments