From ecd0a5487e7f4bda60848ee90b84dc9435c2e83c Mon Sep 17 00:00:00 2001 From: astaxie Date: Thu, 30 Oct 2014 16:12:54 +0800 Subject: [PATCH] fix the import cycle not allowed --- context/context.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/context/context.go b/context/context.go index 8569be14..89b5ffe4 100644 --- a/context/context.go +++ b/context/context.go @@ -31,7 +31,6 @@ import ( "strings" "time" - "github.com/astaxie/beego" "github.com/astaxie/beego/middleware" "github.com/astaxie/beego/utils" ) @@ -71,7 +70,7 @@ func (ctx *Context) Abort(status int, body string) { } // last panic user string ctx.ResponseWriter.Write([]byte(body)) - panic(beego.USERSTOPRUN) + panic("User stop run") } // Write string to response body.