We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6255ccc commit 009ed2eCopy full SHA for 009ed2e
pkg/rsstorage/internal/chunks.go
@@ -347,7 +347,7 @@ func (w *DefaultChunkUtils) tryChunkRead(
347
// Read the current chunk
348
bytesCopied, copyErr := io.Copy(writer, chunk)
349
if copyErr != nil {
350
- err = fmt.Errorf("error reading from chunk: %s", err)
+ err = fmt.Errorf("error reading from chunk: %s", copyErr)
351
return
352
}
353
bytesRead = uint64(bytesCopied)
0 commit comments