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

Update request.md: improve validation error #147

Closed
wants to merge 1 commit into from

Conversation

dpb1857
Copy link

@dpb1857 dpb1857 commented May 13, 2020

When c.Validate(u) returns an error, if we simply return the error up the stack, the user will see an "internal error" message.
Improve handling by returning the status http.StatusBadRequest with the validation failures in the string.

When c.Validate(u) returns an error, if we simply return the error up the stack, the user will see an "internal error" message.
Improve handling by returning the status http.StatusBadRequest with the validation failures in the string.
@lammel
Copy link
Contributor

lammel commented Nov 22, 2020

Closing this one as duplicate of #153.

@lammel lammel closed this Nov 22, 2020
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.

2 participants