forked from TrueCloudLab/frostfs-http-gw
[#105] Add newline to errors
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
3ef46151d2
commit
6265fcb26a
7 changed files with 40 additions and 21 deletions
3
pprof.go
3
pprof.go
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue