kafka-go icon indicating copy to clipboard operation
kafka-go copied to clipboard

Provide contextual information when producing errShortRead

Open achille-roussel opened this issue 3 years ago • 0 comments

Describe the solution you'd like The use of errShortRead in the kafka-go code should be wrapped with fmt.Errorf to provide contextual information about why we hit that error. We would test with errors.Is instead of == or !=.

This will help track down https://github.com/segmentio/kafka-go/issues/621

achille-roussel avatar Apr 09 '21 18:04 achille-roussel