Skip to content

Conversation

@theist
Copy link
Contributor

@theist theist commented Oct 23, 2016

422 errors means that the server can not process the request for some
logic reason. The reason or the reasons comes as an "errors" array in
the response. It makes no sense to show a stack trace of the errors
instead of just showing the causes of the 422 error before exit.

This makes the UI behave like this on a failed attempt to create an user

Login []: carlos.penas
Password []: carlos.penas
Firstname []: carlos.penas
Lastname []: carlos.penas
Mail []: carlos.penas
Is everything OK? (NO/yes) yes
Failed to process request. Reason:
 - Email is invalid
 - Login has already been taken

Instead of showing an stack trace of the error

Carlos Peñas added 2 commits October 23, 2016 22:40
422 errors means that the server can not process the request for some
logic reason. The reason or the reasons comes as an "errors" array in
the response. It makes no sense to show a stack trace of the errors
instead of just showing the causes of the 422 error before exit.
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.

1 participant