Skip to content

Commit

Permalink
Fix error message for handle_consensus_transaction (#4687)
Browse files Browse the repository at this point in the history
  • Loading branch information
lxfind committed Sep 16, 2022
1 parent 279bfe6 commit 2a03a5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/sui-types/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,8 @@ pub enum SuiError {
ConsensusConnectionBroken(String),
#[error("Failed to hear back from consensus: {0}")]
FailedToHearBackFromConsensus(String),
#[error("Failed to lock shared objects: {0}")]
SharedObjectLockingFailure(String),
#[error("Failed to execute handle_consensus_transaction on Sui: {0}")]
HandleConsensusTransactionFailure(String),
#[error("Consensus listener is out of capacity")]
ListenerCapacityExceeded,
#[error("Failed to serialize/deserialize Narwhal message: {0}")]
Expand Down Expand Up @@ -460,7 +460,7 @@ impl std::convert::From<VMError> for SuiError {

impl std::convert::From<SubscriberError> for SuiError {
fn from(error: SubscriberError) -> Self {
SuiError::SharedObjectLockingFailure(error.to_string())
SuiError::HandleConsensusTransactionFailure(error.to_string())
}
}

Expand Down

0 comments on commit 2a03a5c

Please sign in to comment.