Skip to content

Commit

Permalink
state: restore previous error message (tendermint#9435)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmwaters authored Sep 16, 2022
1 parent 0c96f0b commit 21a3bbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions state/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 21a3bbd

Please sign in to comment.