From bbb8d05e2b769376a878eec544fc96086507e058 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Thu, 9 Dec 2021 10:40:18 +0100 Subject: [PATCH] user-facing-error: Fix gettext string --- src/user_facing_error.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.") }