Skip to content

Conversation

@AngeloStavrow
Copy link
Collaborator

Closes #21.

This PR adds an .unknownError case to the WFError type and makes sure we return it if the error can't be generated from the server response (i.e., when trying to log in to a server that doesn't host a WriteFreely instance).

@AngeloStavrow AngeloStavrow requested a review from thebaer October 6, 2020 20:03
@AngeloStavrow AngeloStavrow self-assigned this Oct 6, 2020
Copy link
Member

@thebaer thebaer left a comment

Choose a reason for hiding this comment

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

Looks good!

@AngeloStavrow AngeloStavrow merged commit accd9c4 into main Oct 6, 2020
@AngeloStavrow AngeloStavrow deleted the return-error-on-login-404 branch October 6, 2020 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Logging in to an invalid instance URL does not return an error

3 participants