diff --git a/src/user_facing_error.rs b/src/user_facing_error.rs index 3a66fd3b..4c1b3a3c 100644 --- a/src/user_facing_error.rs +++ b/src/user_facing_error.rs @@ -25,10 +25,10 @@ impl UserFacingError for HttpError { UserDeactivated => gettext("The user is deactivated."), LimitExceeded { retry_after_ms } => { if let Some(ms) = retry_after_ms { - gettext(format!( + gettext!( "You exceeded the homeservers rate limit, retry in {} seconds.", ms.as_secs() - )) + ) } else { gettext("You exceeded the homeservers rate limit, try again later.") }