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
Describe the bug Handler has error as return value. It can be nil if no errors. Otherwise, error object if an error happen.
To Reproduce Steps to reproduce the behavior:
mux.Get("/", func(rw http.ResponseWriter, r *http.Request) error { return errors.New("something bad") })
Expected behavior Should send HTTP response with error message and status.
The text was updated successfully, but these errors were encountered:
Merge pull request #11 from ashishkujoy/improvement/error-handling
da9b22b
#10 Handles error return by request handler, send 500 status code and error message as response body.
solved at #11
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Handler has error as return value.
It can be nil if no errors.
Otherwise, error object if an error happen.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Should send HTTP response with error message and status.
The text was updated successfully, but these errors were encountered: