[#105] Add newline to errors

Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
Denis Kirillov 2021-11-12 14:37:05 +03:00 committed by Alex Vanin
parent 3ef46151d2
commit 6265fcb26a
7 changed files with 40 additions and 21 deletions

View file

@ -5,6 +5,7 @@ import (
rtp "runtime/pprof"
"github.com/fasthttp/router"
"github.com/nspcc-dev/neofs-http-gw/response"
"github.com/valyala/fasthttp"
"github.com/valyala/fasthttp/fasthttpadaptor"
)
@ -38,6 +39,6 @@ func pprofHandler() fasthttp.RequestHandler {
return
}
ctx.Error("Not found", fasthttp.StatusNotFound)
response.Error(ctx, "Not found", fasthttp.StatusNotFound)
}
}