incorrect error rendering (wrong status)

This commit is contained in:
eyalpost 2017-06-12 21:05:40 +03:00
parent 0240e182c6
commit 8b504e7d51
1 changed files with 1 additions and 1 deletions

View File

@ -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()))
})
}