Skip to content

Commit

Permalink
fix: retain full error information for blocking writes (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
pabigot committed Dec 22, 2021
1 parent 4218b50 commit 31b43d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/writeAPIBlocking.go
Expand Up @@ -74,7 +74,7 @@ func NewWriteAPIBlocking(org string, bucket string, service http2.Service, write
func (w *writeAPIBlocking) write(ctx context.Context, line string) error {
err := w.service.WriteBatch(ctx, iwrite.NewBatch(line, w.writeOptions.RetryInterval(), w.writeOptions.MaxRetryTime()))
if err != nil {
return err.Unwrap()
return err
}
return nil
}
Expand Down

0 comments on commit 31b43d9

Please sign in to comment.