Add user facing message for ClientBuildError::AutoDiscovery
This commit is contained in:
parent
8f56b9b5e7
commit
d1c85f13b3
1 changed files with 1 additions and 0 deletions
|
@ -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."),
|
||||
|
|
Loading…
Reference in a new issue