Add user facing message for ClientBuildError::AutoDiscovery

This commit is contained in:
alyaeanyx 2022-03-23 18:59:05 +01:00
parent 8f56b9b5e7
commit d1c85f13b3
No known key found for this signature in database
GPG key ID: 87D1AADCD25B8DEE

View file

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