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 c575c82 commit 03041fcCopy full SHA for 03041fc
esutil/bulk_indexer.go
@@ -610,7 +610,7 @@ func (w *worker) flush(ctx context.Context) error {
610
atomic.AddUint64(&w.bi.stats.numFailed, uint64(len(w.items)))
611
// TODO(karmi): Wrap error (include response struct)
612
if w.bi.config.OnError != nil {
613
- w.bi.config.OnError(ctx, fmt.Errorf("flush: %s", err))
+ w.bi.config.OnError(ctx, fmt.Errorf("flush: %s", res.String()))
614
}
615
return fmt.Errorf("flush: %s", res.String())
616
0 commit comments