mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-14 13:51:21 +00:00
improve vague error msg, closes #1158
This commit is contained in:
@ -172,7 +172,7 @@ func (voteSet *VoteSet) addVote(vote *Vote) (added bool, err error) {
|
|||||||
// Ensure that the signer has the right address
|
// Ensure that the signer has the right address
|
||||||
if !bytes.Equal(valAddr, lookupAddr) {
|
if !bytes.Equal(valAddr, lookupAddr) {
|
||||||
return false, errors.Wrapf(ErrVoteInvalidValidatorAddress,
|
return false, errors.Wrapf(ErrVoteInvalidValidatorAddress,
|
||||||
"vote.ValidatorAddress (%X) does not match address (%X) for vote.ValidatorIndex (%d)",
|
"vote.ValidatorAddress (%X) does not match address (%X) for vote.ValidatorIndex (%d)\nEnsure the genesis file is correct across all validators.",
|
||||||
valAddr, lookupAddr, valIndex)
|
valAddr, lookupAddr, valIndex)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user