Skip to content

Commit

Permalink
Merge pull request #10944 from vegaprotocol/10943-fix-error-msg
Browse files Browse the repository at this point in the history
fix: improve error message when self-vote is sent again
  • Loading branch information
ze97286 authored Mar 20, 2024
2 parents 1d019df + 8baa5e4 commit 248c3e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

### 🐛 Fixes

- [](https://github.com/vegaprotocol/vega/issues/xxxxx)
- [10943](https://github.com/vegaprotocol/vega/issues/10943) - Fix error message format when node vote is sent again.

## 0.75.0

Expand Down
3 changes: 2 additions & 1 deletion core/validators/witness.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package validators
import (
"context"
"errors"
"fmt"
"math/rand"
"sort"
"strconv"
Expand Down Expand Up @@ -409,7 +410,7 @@ func (w *Witness) OnTick(ctx context.Context, t time.Time) {
if v.selfVoteReceived(w.top.SelfVegaPubKey()) {
continue
}
w.onCommandSent(v.res.GetID())("", errors.New("no self votes received after 10 seconds"))
w.onCommandSent(v.res.GetID())("", fmt.Errorf("no self votes received after %s", w.cfg.NodeVoteResendInterval.Duration.String()))
}
}
}
Expand Down

0 comments on commit 248c3e8

Please sign in to comment.