mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-02 04:58:38 +00:00
core/state/snapshot: return err if err != nil
This commit is contained in:
parent
efe58eac00
commit
f50f328463
1 changed files with 1 additions and 0 deletions
|
|
@ -33,6 +33,7 @@ import (
|
||||||
func CheckDanglingStorage(chaindb ethdb.KeyValueStore) error {
|
func CheckDanglingStorage(chaindb ethdb.KeyValueStore) error {
|
||||||
if err := checkDanglingDiskStorage(chaindb); err != nil {
|
if err := checkDanglingDiskStorage(chaindb); err != nil {
|
||||||
log.Error("Database check error", "err", err)
|
log.Error("Database check error", "err", err)
|
||||||
|
return err
|
||||||
}
|
}
|
||||||
return checkDanglingMemStorage(chaindb)
|
return checkDanglingMemStorage(chaindb)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue