From e2aa3cf63b22fbdd6b9a71f36e3e01fc40b89ae1 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 15 Aug 2021 23:20:46 -0700 Subject: [PATCH] fix go test --- weed/server/filer_grpc_server_remote.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/weed/server/filer_grpc_server_remote.go b/weed/server/filer_grpc_server_remote.go index 6d77e310a..8049f4f46 100644 --- a/weed/server/filer_grpc_server_remote.go +++ b/weed/server/filer_grpc_server_remote.go @@ -148,6 +148,10 @@ func (fs *FilerServer) DownloadToLocal(ctx context.Context, req *filer_pb.Downlo }) } + if fetchAndWriteErr != nil { + return nil, fetchAndWriteErr + } + garbage := entry.Chunks newEntry := entry.ShallowClone()