mirror of
https://github.com/astaxie/beego.git
synced 2025-06-11 04:50:40 +00:00
incorrect error rendering (wrong status)
This commit is contained in:
@ -177,7 +177,7 @@ func jsonRenderer(value interface{}) Renderer {
|
||||
func errorRenderer(err error) Renderer {
|
||||
return rendererFunc(func(ctx *Context) {
|
||||
ctx.Output.SetStatus(500)
|
||||
ctx.WriteString(err.Error())
|
||||
ctx.Output.Body([]byte(err.Error()))
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user