Add missing tracerr.Wrap

This commit is contained in:
Eduard S
2020-12-24 13:39:27 +01:00
parent 2205fcadbc
commit a0c8ace38d
4 changed files with 11 additions and 11 deletions

View File

@@ -419,7 +419,7 @@ func (n *Node) syncLoopFn(ctx context.Context, lastBlock *common.Block) (*common
stats := n.sync.Stats()
if err != nil {
// case: error
return nil, n.cfg.Synchronizer.SyncLoopInterval.Duration, err
return nil, n.cfg.Synchronizer.SyncLoopInterval.Duration, tracerr.Wrap(err)
} else if discarded != nil {
// case: reorg
log.Infow("Synchronizer.Sync reorg", "discarded", *discarded)