diff options
author | Colin Marc <hi@colinmarc.com> | 2022-02-08 18:49:14 +0100 |
---|---|---|
committer | Colin Marc <hi@colinmarc.com> | 2022-02-08 18:49:14 +0100 |
commit | b02ab581bd500863b60a6d6718b48854c26acd23 (patch) | |
tree | d583dc5444d81b52efaa8bf1d6616c4b9b19e270 | |
parent | 11bad6d16f5dac9909100f1230d7eff23ebf6010 (diff) |
Propogate errors from validateChecksum correctly.
Fixes #275
-rw-r--r-- | internal/transfer/block_read_stream.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/transfer/block_read_stream.go b/internal/transfer/block_read_stream.go index 643e0a0..c2efa07 100644 --- a/internal/transfer/block_read_stream.go +++ b/internal/transfer/block_read_stream.go @@ -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++ |