mirror of
https://github.com/astaxie/beego.git
synced 2025-06-20 13:00:18 +00:00
1
error.go
1
error.go
@ -453,7 +453,6 @@ func exception(errcode string, ctx *context.Context) {
|
||||
|
||||
func executeError(err *errorInfo, ctx *context.Context, code int) {
|
||||
if err.errorType == errorTypeHandler {
|
||||
ctx.ResponseWriter.WriteHeader(code)
|
||||
err.handler(ctx.ResponseWriter, ctx.Request)
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user