From 8b504e7d51245c987fbc62591c2e53e43a71e3dd Mon Sep 17 00:00:00 2001 From: eyalpost Date: Mon, 12 Jun 2017 21:05:40 +0300 Subject: [PATCH] incorrect error rendering (wrong status) --- context/output.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context/output.go b/context/output.go index cf9e7a7e..61ce8cc7 100644 --- a/context/output.go +++ b/context/output.go @@ -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())) }) }