Skip to content

Commit c7962c7

Browse files
authored
Clarify UnexpectedQuorum error message. (#4127)
## Motivation If the validators voted for a different block than the client expected, the error message doesn't make it clear what the hashes mean. ## Proposal Clarify that they are block hashes. ## Test Plan CI ## Release Plan - Nothing to do / These changes follow the usual release cycle. ## Links - [reviewer checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
1 parent e73bcf1 commit c7962c7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

linera-core/src/client/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1477,7 +1477,10 @@ pub enum ChainClientError {
14771477
#[error(transparent)]
14781478
BcsError(#[from] bcs::Error),
14791479

1480-
#[error("Unexpected quorum: got {hash}, {round}, expected {expected_hash}, {expected_round}")]
1480+
#[error(
1481+
"Unexpected quorum: validators voted for block {hash} in {round}, \
1482+
expected block {expected_hash} in {expected_round}"
1483+
)]
14811484
UnexpectedQuorum {
14821485
hash: CryptoHash,
14831486
round: Round,

0 commit comments

Comments
 (0)