user-facing-error: Fix gettext string

This commit is contained in:
Kévin Commaille 2021-12-09 10:40:18 +01:00 committed by Julian Sparber
parent f7016fa310
commit bbb8d05e2b

View file

@ -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.")
}