1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-01 09:51:39 -05:00

Display error as string but not bytes (#7780)

* display error as string but not bytes

* Update routers/repo/http.go

Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com>
This commit is contained in:
Lunny Xiao 2019-08-08 00:33:29 +08:00 committed by Lauris BH
parent 714dcf9dad
commit b16be15803

View file

@ -427,7 +427,7 @@ func serviceRPC(h serviceHandler, service string) {
cmd.Stdin = reqBody cmd.Stdin = reqBody
cmd.Stderr = &stderr cmd.Stderr = &stderr
if err := cmd.Run(); err != nil { if err := cmd.Run(); err != nil {
log.Error("Fail to serve RPC(%s): %v - %v", service, err, stderr) log.Error("Fail to serve RPC(%s): %v - %s", service, err, stderr.String())
return return
} }
} }