Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Detail when Creating User #84

Open
U8NWXD opened this issue Jul 30, 2018 · 1 comment
Open

Error Detail when Creating User #84

U8NWXD opened this issue Jul 30, 2018 · 1 comment

Comments

@U8NWXD
Copy link
Member

U8NWXD commented Jul 30, 2018

When creating a new account, users should be told what is wrong with their request. For example, if their username is already taken (results in 400 error with text Username already taken or invalid params), the user should be told so.

@U8NWXD
Copy link
Member Author

U8NWXD commented Jul 30, 2018

To get the error text from the response, use

new String(error.networkResponse.data, StandardCharsets.UTF_8)

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

No branches or pull requests

1 participant