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

Only works with error panics #1

Open
Tethik opened this issue Mar 14, 2019 · 0 comments
Open

Only works with error panics #1

Tethik opened this issue Mar 14, 2019 · 0 comments

Comments

@Tethik
Copy link
Owner

Tethik commented Mar 14, 2019

The middleware only sends the error to sentry if it recovers an error.

Example

The following works, because it's wrapped in an error

// Utility Handlers
func (db *Handler) explodeHandler(c echo.Context) error {
	panic(errors.New("boom!"))
	return c.String(http.StatusOK, "OK")
}

The following does not work.

// Utility Handlers
func (db *Handler) explodeHandler(c echo.Context) error {
	panic("boom!")
	return c.String(http.StatusOK, "OK")
}
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

No branches or pull requests

1 participant