mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-22 20:42:13 +00:00
better deserialization log
This commit is contained in:
parent
202bbbab6c
commit
23daa966be
@ -76,7 +76,8 @@ proc get(db: BeaconChainDB, key: openArray[byte], T: typedesc): Opt[T] =
|
||||
except SerializationError as e:
|
||||
# If the data can't be deserialized, it could be because it's from a
|
||||
# version of the software that uses a different SSZ encoding
|
||||
warn "Unable to deserialize data, old database?", err = e.msg
|
||||
warn "Unable to deserialize data, old database?",
|
||||
err = e.msg, typ = name(T), dataLen = data.len
|
||||
discard
|
||||
|
||||
discard db.backend.get(key, decode).expect("working database")
|
||||
|
Loading…
x
Reference in New Issue
Block a user