Skip to content

Commit

Permalink
Merge pull request ProvableHQ#3391 from niklaslong/fix/error-msg
Browse files Browse the repository at this point in the history
Fix error message string interpolation
  • Loading branch information
zosorock authored Oct 18, 2024
2 parents 1121eb7 + 8141829 commit 7efad80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/bft/events/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ impl<N: Network> FromBytes for Event<N> {
13 => Self::ValidatorsRequest(ValidatorsRequest::read_le(&mut reader)?),
14 => Self::ValidatorsResponse(ValidatorsResponse::read_le(&mut reader)?),
15 => Self::WorkerPing(WorkerPing::read_le(&mut reader)?),
16.. => return Err(error("Unknown event ID {id}")),
16.. => return Err(error(format!("Unknown event ID {id}"))),
};

// Ensure that there are no "dangling" bytes.
Expand Down

0 comments on commit 7efad80

Please sign in to comment.