state: restore previous error message (#9435)

This commit is contained in:
Callum Waters
2022-09-16 14:49:51 +02:00
committed by GitHub
parent 0c96f0b434
commit 21a3bbda3f

View File

@@ -531,7 +531,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)