From 1c01671ec6c827de5121952bc1e240eeb2e47673 Mon Sep 17 00:00:00 2001 From: Zach Ramsay Date: Wed, 31 Jan 2018 16:00:15 +0000 Subject: [PATCH] improve vague error msg, closes #1158 --- types/vote_set.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/vote_set.go b/types/vote_set.go index 584a45e65..2b5ac6316 100644 --- a/types/vote_set.go +++ b/types/vote_set.go @@ -172,7 +172,7 @@ func (voteSet *VoteSet) addVote(vote *Vote) (added bool, err error) { // Ensure that the signer has the right address if !bytes.Equal(valAddr, lookupAddr) { 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) }