Browse Source

Merge pull request #1178 from tendermint/nice-err-msg

improve error message
pull/1180/head
Ethan Buchman 7 years ago
committed by GitHub
parent
commit
2919bc3f7f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      types/vote_set.go

+ 1
- 1
types/vote_set.go View File

@ -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)
} }


Loading…
Cancel
Save