aboutsummaryrefslogtreecommitdiff
path: root/routes
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2018-06-13 21:58:46 +0800
committerUnknwon <u@gogs.io>2018-06-13 21:58:46 +0800
commite5ddbcab7d9c95f6b3043cac8bec9b8c7851ad04 (patch)
tree6da8615b3b266950b9f44df732c2dcf71d39cf36 /routes
parentf9bc980b0b51844367305a347b6dbcb327c65677 (diff)
routes/repo/http: fix wrong format type
Diffstat (limited to 'routes')
-rw-r--r--routes/repo/http.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/repo/http.go b/routes/repo/http.go
index 15b84347..3cfe5709 100644
--- a/routes/repo/http.go
+++ b/routes/repo/http.go
@@ -293,7 +293,7 @@ func serviceRPC(h serviceHandler, service string) {
cmd.Stderr = &stderr
cmd.Stdin = reqBody
if err = cmd.Run(); err != nil {
- log.Error(2, "HTTP.serviceRPC: fail to serve RPC '%s': %v - %s", service, err, stderr)
+ log.Error(2, "HTTP.serviceRPC: fail to serve RPC '%s': %v - %s", service, err, stderr.String())
h.w.WriteHeader(http.StatusInternalServerError)
return
}