Skip to content

Commit 661bd45

Browse files
authored
core/state/snapshot: print correct error from trie iterator (#28560)
1 parent 460cc16 commit 661bd45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/state/snapshot/generate.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ func (dl *diskLayer) generateRange(ctx *generatorContext, trieId *trie.ID, prefi
446446
// Trie errors should never happen. Still, in case of a bug, expose the
447447
// error here, as the outer code will presume errors are interrupts, not
448448
// some deeper issues.
449-
log.Error("State snapshotter failed to iterate trie", "err", err)
449+
log.Error("State snapshotter failed to iterate trie", "err", iter.Err)
450450
return false, nil, iter.Err
451451
}
452452
// Delete all stale snapshot states remaining

0 commit comments

Comments
 (0)