From c0182f8301b9773f3441f25c5dc9b938d4e08aa8 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Fri, 9 Oct 2020 13:59:56 -0700 Subject: [PATCH] return the correct err from iterFullTipset --- chain/sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chain/sync.go b/chain/sync.go index c280e3a40..369c65d33 100644 --- a/chain/sync.go +++ b/chain/sync.go @@ -1526,7 +1526,7 @@ func (syncer *Syncer) iterFullTipsets(ctx context.Context, headers []*types.TipS ss.SetStage(api.StageMessages) if batchErr != nil { - return xerrors.Errorf("failed to fetch messages: %w", err) + return xerrors.Errorf("failed to fetch messages: %w", batchErr) } for bsi := 0; bsi < len(bstout); bsi++ {