Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Hernando Castano <[email protected]>
  • Loading branch information
JesseAbram and HCastano authored Mar 4, 2025
1 parent 138d23f commit 73bca0e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub enum AttestationErr {
QuoteParse(#[from] tdx_quote::QuoteParseError),
#[error("anyhow error: {0}")]
Anyhow(#[from] anyhow::Error),
#[error("User Error: {0}")]
#[error("Application State Error: {0}")]
AppStateError(#[from] crate::helpers::app_state::AppStateError),
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ pub enum BackupProviderError {
QuoteMeasurement(#[from] crate::attestation::errors::QuoteMeasurementErr),
#[error("Timed out waiting to be connected to chain")]
NotConnectedToChain,
#[error("User Error: {0}")]
#[error("Application State Error: {0}")]
AppStateError(#[from] crate::helpers::app_state::AppStateError),
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ pub enum ProtocolErr {
Bip32DerivationError(#[from] bip32::Error),
#[error("Node has started fresh and not yet successfully set up")]
NotReady,
#[error("User Error: {0}")]
#[error("Application State Error: {0}")]
AppStateError(#[from] crate::helpers::app_state::AppStateError),
}

Expand Down
2 changes: 1 addition & 1 deletion crates/threshold-signature-server/src/user/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ pub enum UserErr {
ProgramVersion,
#[error("Conversion Error: {0}")]
TryFromSlice(#[from] std::array::TryFromSliceError),
#[error("User Error: {0}")]
#[error("Application State Error: {0}")]
AppStateError(#[from] crate::helpers::app_state::AppStateError),
}

Expand Down
2 changes: 1 addition & 1 deletion crates/threshold-signature-server/src/validator/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ pub enum ValidatorErr {
TryFromSlice(#[from] TryFromSliceError),
#[error("Node has started fresh and not yet successfully set up")]
NotReady,
#[error("User Error: {0}")]
#[error("Application State Error: {0}")]
AppStateError(#[from] crate::helpers::app_state::AppStateError),
}

Expand Down

0 comments on commit 73bca0e

Please sign in to comment.