mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 21:41:29 +00:00
Merge branch 'master' into develop
This commit is contained in:
commit
436edda926
@ -272,6 +272,11 @@ func (c *Controller) Abort(code string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// CustomAbort stops controller handler and show the error data, it's similar Aborts, but support status code and body.
|
||||||
|
func (c *Controller) CustomAbort(status int, body string) {
|
||||||
|
c.Ctx.Abort(status, body)
|
||||||
|
}
|
||||||
|
|
||||||
// StopRun makes panic of USERSTOPRUN error and go to recover function if defined.
|
// StopRun makes panic of USERSTOPRUN error and go to recover function if defined.
|
||||||
func (c *Controller) StopRun() {
|
func (c *Controller) StopRun() {
|
||||||
panic(USERSTOPRUN)
|
panic(USERSTOPRUN)
|
||||||
|
Loading…
Reference in New Issue
Block a user