Skip to content

Placeholder as the Default Homeserver#101

Open
simurgh9 wants to merge 2 commits into
viktorstrate:mainfrom
simurgh9:main
Open

Placeholder as the Default Homeserver#101
simurgh9 wants to merge 2 commits into
viktorstrate:mainfrom
simurgh9:main

Conversation

@simurgh9
Copy link
Copy Markdown
Contributor

Closes #68.

Comment on lines +132 to +134
default:
Logger.matrixClient.error("\(showError.localizedDescription)")
return "Something went wrong!"
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like this solution to make the errors prettier, since it default case catches too many errors under the unuseful "Something went wrong!" error. I'd rather have a harder to read error message than an opaque generic error like this.

For instance if you attempt to sign in and the username and password is incorrect this error is presented, the old error message was a bit harder to read, but it did say that the credentials were wrong.

Ideally, we should implement a nicely formatted error for all cases, but a simpler halfway solution is to return the original showError.localizedDescription if something goes wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Initial login - SDK error

2 participants