[#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
7
response/utils.go
Normal file
7
response/utils.go
Normal file
|
@ -0,0 +1,7 @@
|
|||
package response
|
||||
|
||||
import "github.com/valyala/fasthttp"
|
||||
|
||||
func Error(r *fasthttp.RequestCtx, msg string, code int) {
|
||||
r.Error(msg+"\n", code)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue