Skip to content

fix: Show error message from backend on create existing user #1964

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

Merged
merged 2 commits into from
Jun 1, 2022

Conversation

presleyp
Copy link
Contributor

@presleyp presleyp commented Jun 1, 2022

Fixes #1889
Discussed in #1961
Our handling of API errors overlooked the need to distinguish between ones that have field-level errors and ones that just have an overall message. I added a util function to distinguish between them, and did the unpacking of the overall error message in the XService.

Screen Shot 2022-06-01 at 2 30 23 PM

@presleyp presleyp requested a review from a team as a code owner June 1, 2022 19:15
Copy link
Collaborator

@BrunoQuaresma BrunoQuaresma left a comment

Choose a reason for hiding this comment

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

LGTM

@presleyp presleyp merged commit bb400a4 into main Jun 1, 2022
@presleyp presleyp deleted the create-error/presleyp/1889 branch June 1, 2022 19:52
kylecarbs pushed a commit that referenced this pull request Jun 10, 2022
* Show error message from backend on create existing user

* Format
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.

Bug: User create form: No error message is displayed in case of duplicated new user name/email
2 participants