Browse Source

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>
master
Lunny Xiao Lauris BH 5 years ago
parent
commit
b16be15803
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      routers/repo/http.go

+ 1
- 1
routers/repo/http.go 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
} }
} }


Loading…
Cancel
Save