We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
E.g.
err := rest.ReadRESTReq(w, r, cdc, &req) if err != nil { rest.WriteErrorResponse(w, http.StatusBadRequest, err.Error()) return }
There is no need to handle/write the error response as ReadRESTReq does that on its own.
ReadRESTReq
The text was updated successfully, but these errors were encountered:
Don't write errors twice when ReadRESTReq() fails
d18d7eb
Closes: #3490
Looks to be addressed in one of your PRs @alessio
Sorry, something went wrong.
alessio
No branches or pull requests
E.g.
There is no need to handle/write the error response as
ReadRESTReq
does that on its own.For Admin Use
The text was updated successfully, but these errors were encountered: