-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
How to create a custom recover? #2004
Comments
Beego's recoverPanic has a lot logic inside. why you want to overwrite it? what do you want to solve? Do you want to define the error page? If that the case please reference to http://beego.me/docs/mvc/controller/errors.md |
Hi @astaxie |
Example, an unexpected nil pointer error
In console, it showed
I want to custom this page and send email to our maintainers. |
We didn't support that now. But that's a good example to support a recover hook |
Please answer these questions before submitting your issue. Thanks!
bee version
)?bee :1.4.1
beego :1.6.1
Go :go version go1.6.2 linux/amd64
go env
)?GOARCH="amd64"
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
Create an admin website
How to override Beego's recoverPanic? I have set
recoverpanic = false
and write my own recover but have no luckThe text was updated successfully, but these errors were encountered: