diff --git a/libparsec/crates/client/src/invite/claimer.rs b/libparsec/crates/client/src/invite/claimer.rs index 053ff031b1b..80cea1a95b8 100644 --- a/libparsec/crates/client/src/invite/claimer.rs +++ b/libparsec/crates/client/src/invite/claimer.rs @@ -46,7 +46,7 @@ pub enum ClaimInProgressError { ActiveUsersLimitReached, #[error("The provided user is not allowed to greet this invitation")] GreeterNotAllowed, - #[error("Greeting attempt cancelled by {origin:?} because {reason:?} on {timestamp}")] + #[error("Greeting attempt cancelled by {origin} because of {reason} on {timestamp}")] GreetingAttemptCancelled { origin: GreeterOrClaimer, reason: CancelledGreetingAttemptReason, diff --git a/libparsec/crates/types/src/invite.rs b/libparsec/crates/types/src/invite.rs index 188609d48e0..1c38b2b593f 100644 --- a/libparsec/crates/types/src/invite.rs +++ b/libparsec/crates/types/src/invite.rs @@ -108,8 +108,8 @@ impl FromStr for GreeterOrClaimer { impl Display for GreeterOrClaimer { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { - Self::Greeter => write!(f, "GREETER"), - Self::Claimer => write!(f, "CLAIMER"), + Self::Greeter => write!(f, "greeter"), + Self::Claimer => write!(f, "claimer"), } } } @@ -168,13 +168,13 @@ impl FromStr for CancelledGreetingAttemptReason { impl std::fmt::Display for CancelledGreetingAttemptReason { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { match self { - Self::ManuallyCancelled => write!(f, "MANUALLY_CANCELLED"), - Self::InvalidNonceHash => write!(f, "INVALID_NONCE_HASH"), - Self::InvalidSasCode => write!(f, "INVALID_SAS_CODE"), - Self::UndecipherablePayload => write!(f, "UNDECIPHERABLE_PAYLOAD"), - Self::UndeserializablePayload => write!(f, "UNDESERIALIZABLE_PAYLOAD"), - Self::InconsistentPayload => write!(f, "INCONSISTENT_PAYLOAD"), - Self::AutomaticallyCancelled => write!(f, "AUTOMATICALLY_CANCELLED"), + Self::ManuallyCancelled => write!(f, "manually cancelled"), + Self::InvalidNonceHash => write!(f, "invalid nonce hash"), + Self::InvalidSasCode => write!(f, "invalid sas code"), + Self::UndecipherablePayload => write!(f, "undecipherable payload"), + Self::UndeserializablePayload => write!(f, "undeserializable payload"), + Self::InconsistentPayload => write!(f, "inconsistent payload"), + Self::AutomaticallyCancelled => write!(f, "automatically cancelled"), } } }