Skip to content

Commit 009ed2e

Browse files
CDRaynbdeitte
andauthored
Update pkg/rsstorage/internal/chunks.go
Co-authored-by: Brian Deitte <bdeitte@gmail.com>
1 parent 6255ccc commit 009ed2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/rsstorage/internal/chunks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ func (w *DefaultChunkUtils) tryChunkRead(
347347
// Read the current chunk
348348
bytesCopied, copyErr := io.Copy(writer, chunk)
349349
if copyErr != nil {
350-
err = fmt.Errorf("error reading from chunk: %s", err)
350+
err = fmt.Errorf("error reading from chunk: %s", copyErr)
351351
return
352352
}
353353
bytesRead = uint64(bytesCopied)

0 commit comments

Comments
 (0)