mirror of
https://github.com/astaxie/beego.git
synced 2024-11-26 05:21:30 +00:00
fix the import cycle not allowed
This commit is contained in:
parent
fda841208d
commit
ecd0a5487e
@ -31,7 +31,6 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/astaxie/beego"
|
|
||||||
"github.com/astaxie/beego/middleware"
|
"github.com/astaxie/beego/middleware"
|
||||||
"github.com/astaxie/beego/utils"
|
"github.com/astaxie/beego/utils"
|
||||||
)
|
)
|
||||||
@ -71,7 +70,7 @@ func (ctx *Context) Abort(status int, body string) {
|
|||||||
}
|
}
|
||||||
// last panic user string
|
// last panic user string
|
||||||
ctx.ResponseWriter.Write([]byte(body))
|
ctx.ResponseWriter.Write([]byte(body))
|
||||||
panic(beego.USERSTOPRUN)
|
panic("User stop run")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Write string to response body.
|
// Write string to response body.
|
||||||
|
Loading…
Reference in New Issue
Block a user