Merge pull request #2902 from filecoin-project/asr/error-fix

Fix error message
This commit is contained in:
Whyrusleeping 2020-08-07 13:38:07 -07:00 committed by GitHub
commit 383e28e6e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1353,7 +1353,7 @@ func (syncer *Syncer) syncFork(ctx context.Context, incoming *types.TipSet, know
if !syncer.Genesis.Equals(nts) { if !syncer.Genesis.Equals(nts) {
return nil, xerrors.Errorf("somehow synced chain that linked back to a different genesis (bad genesis: %s)", nts.Key()) return nil, xerrors.Errorf("somehow synced chain that linked back to a different genesis (bad genesis: %s)", nts.Key())
} }
return nil, xerrors.Errorf("synced chain forked at genesis, refusing to sync; incoming: %s") return nil, xerrors.Errorf("synced chain forked at genesis, refusing to sync; incoming: %s", incoming.Cids())
} }
if nts.Equals(tips[cur]) { if nts.Equals(tips[cur]) {