Skip to content

Commit

Permalink
Propogate errors from validateChecksum correctly.
Browse files Browse the repository at this point in the history
Fixes #275
  • Loading branch information
colinmarc committed Feb 8, 2022
1 parent 11bad6d commit b02ab58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/transfer/block_read_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (s *blockReadStream) Read(b []byte) (int, error) {

err = s.validateChecksum(s.chunk.Bytes())
if err != nil {
return 0, nil
return 0, err
}

s.chunkIndex++
Expand Down

0 comments on commit b02ab58

Please sign in to comment.