Skip to content

Commit

Permalink
fmt.Errorf formart
Browse files Browse the repository at this point in the history
  • Loading branch information
lochjin committed Dec 7, 2023
1 parent c44b615 commit e4d0125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meerdag/blocktransf.go
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ func (bd *MeerDAG) Foreach(start IBlock, depth uint, filter FilterType, fn func(
}
block := bd.GetBlockById(das[i])
if block == nil {
return fmt.Errorf("No block:id=%s", das[i])
return fmt.Errorf("No block:id=%d", das[i])
}
pBlock := block.(*PhantomBlock)
ret, err := fn(pBlock)
Expand Down

0 comments on commit e4d0125

Please sign in to comment.