Skip to content

Commit

Permalink
[beacon] Print a fixed error message instead of a panic (#18751)
Browse files Browse the repository at this point in the history
## Description 

Describe the changes or additions included in this PR.

## Test plan 

How did you test the new or updated feature?

---

## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
- [ ] REST API:
  • Loading branch information
benr-ml authored Jul 21, 2024
1 parent d42ec48 commit 7bc276d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/sui-types/src/messages_consensus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ pub enum VersionedDkgConfirmation {
impl Debug for VersionedDkgMessage {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
match self {
VersionedDkgMessage::V0() => panic!("BUG: invalid VersionedDkgMessage version"),
VersionedDkgMessage::V0() => write!(f, "Deprecated VersionedDkgMessage version 0"),
VersionedDkgMessage::V1(msg) => write!(
f,
"DKG V1 Message with sender={}, vss_pk.degree={}, encrypted_shares.len()={}",
Expand Down

0 comments on commit 7bc276d

Please sign in to comment.