From d1c85f13b3867e8aafea57f61c5daea0a893698c Mon Sep 17 00:00:00 2001 From: alyaeanyx Date: Wed, 23 Mar 2022 18:59:05 +0100 Subject: [PATCH] Add user facing message for ClientBuildError::AutoDiscovery --- src/user_facing_error.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/user_facing_error.rs b/src/user_facing_error.rs index cc3a2299..8f88dc81 100644 --- a/src/user_facing_error.rs +++ b/src/user_facing_error.rs @@ -69,6 +69,7 @@ impl UserFacingError for ClientBuildError { fn to_user_facing(self) -> String { match self { ClientBuildError::Url(_) => gettext("This is not a valid URL"), + ClientBuildError::AutoDiscovery(_) => gettext("This does not appear to be a Matrix homeserver."), ClientBuildError::Http(err) => err.to_user_facing(), ClientBuildError::SledStore(err) => err.to_user_facing(), _ => gettext("An unknown error occurred."),