[fractal/fractal-next] Add user facing message for ClientBuildError::AutoDiscovery
- From: Julian Sparber <jsparber src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [fractal/fractal-next] Add user facing message for ClientBuildError::AutoDiscovery
- Date: Thu, 24 Mar 2022 13:13:53 +0000 (UTC)
commit d1c85f13b3867e8aafea57f61c5daea0a893698c
Author: alyaeanyx <alexandra hollmeier mailbox org>
Date: Wed Mar 23 18:59:05 2022 +0100
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 cc3a2299a..8f88dc810 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."),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]