From b2ee5873fbec831a480bdf62be20c649a09b49ba Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Thu, 8 Oct 2020 23:19:20 -0700 Subject: [PATCH] fix error not being returned --- weed/filer/reader_at.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/filer/reader_at.go b/weed/filer/reader_at.go index 2a46c1ca6..fa51df687 100644 --- a/weed/filer/reader_at.go +++ b/weed/filer/reader_at.go @@ -158,7 +158,7 @@ func (c *ChunkReadAt) readFromWholeChunkData(chunkView *ChunkView, nextChunkView v, doErr := c.readOneWholeChunk(chunkView) if doErr != nil { - return + return nil, doErr } chunkData = v.([]byte)