mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
trie: make must-parse panics a bit more informative
This commit is contained in:
parent
672d3afd2b
commit
a0a2ed1c09
1 changed files with 1 additions and 1 deletions
|
|
@ -120,7 +120,7 @@ func (n valueNode) fstring(ind string) string {
|
|||
func mustDecodeNode(hash, buf []byte, cachegen uint16) node {
|
||||
n, err := decodeNode(hash, buf, cachegen)
|
||||
if err != nil {
|
||||
panic(fmt.Sprintf("node %x: %v", hash, err))
|
||||
panic(fmt.Sprintf("node %x (%x): %v", hash, buf, err))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue