From 2d5f8803f79c8f33ccbc9825206463b5d0395185 Mon Sep 17 00:00:00 2001 From: Hilko Bengen Date: Mon, 30 Mar 2020 15:28:04 +0200 Subject: [PATCH] Don't hide errors while reading from ZIP files --- zipfs/file.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zipfs/file.go b/zipfs/file.go index a81ea064..acac665d 100644 --- a/zipfs/file.go +++ b/zipfs/file.go @@ -33,7 +33,8 @@ func (f *File) fillBuffer(offset int64) (err error) { return } buf := make([]byte, int(offset)-len(f.buf)) - n, _ := io.ReadFull(f.reader, buf) + var n int + n, err = io.ReadFull(f.reader, buf) if n > 0 { f.buf = append(f.buf, buf[:n]...) }