core/state/snapshot: print correct error from trie iterator (#28560)

This commit is contained in:
rjl493456442 authored and GitHub committed 2023-11-21 10:47:37 +08:00
1 parent 460cc1673e
commit 661bd45188
1 file changed
+1 -1
+1 -1
View File
@@ -446,7 +446,7 @@ func (dl *diskLayer) generateRange(ctx *generatorContext, trieId *trie.ID, prefi
// Trie errors should never happen. Still, in case of a bug, expose the
// error here, as the outer code will presume errors are interrupts, not
// some deeper issues.
log.Error("State snapshotter failed to iterate trie", "err", err)
log.Error("State snapshotter failed to iterate trie", "err", iter.Err)
return false, nil, iter.Err
}
// Delete all stale snapshot states remaining