mirror of
https://github.com/astaxie/beego.git
synced 2025-06-11 20:20:39 +00:00
Merge pull request #1805 from JessonChan/abort_panic_bug
Abort panic bug
This commit is contained in:
@ -77,6 +77,7 @@ func (ctx *Context) Redirect(status int, localurl string) {
|
||||
// Abort stops this request.
|
||||
// if beego.ErrorMaps exists, panic body.
|
||||
func (ctx *Context) Abort(status int, body string) {
|
||||
ctx.Output.SetStatus(status)
|
||||
panic(body)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user