state: restore previous error message (#9435) (#9441)

This commit is contained in:
mergify[bot]
2022-09-16 15:40:18 +02:00
committed by GitHub
parent 5164dc6d7d
commit 4999643e2a

View File

@@ -533,7 +533,7 @@ func loadValidatorsInfo(db dbm.DB, height int64) (*tmstate.ValidatorsInfo, error
}
if len(buf) == 0 {
return nil, errors.New("no last ABCI response has been persisted")
return nil, errors.New("value retrieved from db is empty")
}
v := new(tmstate.ValidatorsInfo)
@@ -619,7 +619,7 @@ func (store dbStore) loadConsensusParamsInfo(height int64) (*tmstate.ConsensusPa
return nil, err
}
if len(buf) == 0 {
return nil, errors.New("no last ABCI response has been persisted")
return nil, errors.New("value retrieved from db is empty")
}
paramsInfo := new(tmstate.ConsensusParamsInfo)