Skip to content

Commit

Permalink
Keep original error in reader (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgomesdev authored Apr 30, 2024
1 parent c38facc commit 1d8e9ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ func (k *Kafka) consume(
if err != nil {
k.reportReaderStats(reader.Stats())

err = NewXk6KafkaError(failedReadMessage, "Unable to read messages.", nil)
err = NewXk6KafkaError(failedReadMessage, "Unable to read messages.", err)
logger.WithField("error", err).Error(err)
common.Throw(k.vu.Runtime(), err)
}
Expand Down

0 comments on commit 1d8e9ef

Please sign in to comment.