Merge pull request #4276 from filecoin-project/steb/fix-bad-error

return the correct err from iterFullTipset
This commit is contained in:
Łukasz Magiera 2020-10-09 23:26:54 +02:00 committed by GitHub
commit 3cb1abba4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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++ {