diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-08-08 00:33:29 +0800 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-08-07 19:33:29 +0300 |
commit | b16be158034022421b90b1dc78e60ba4e006c007 (patch) | |
tree | bcd911046674388e1c786201cf5c2f37ca111637 /routers | |
parent | 714dcf9dadf38841bf2ddd2a9e2633e9ad074b74 (diff) | |
download | gitea-b16be158034022421b90b1dc78e60ba4e006c007.tar.gz gitea-b16be158034022421b90b1dc78e60ba4e006c007.zip |
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>
Diffstat (limited to 'routers')
-rw-r--r-- | routers/repo/http.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/http.go b/routers/repo/http.go index a9a5cedc20..c0bf830969 100644 --- a/routers/repo/http.go +++ b/routers/repo/http.go @@ -427,7 +427,7 @@ func serviceRPC(h serviceHandler, service string) { cmd.Stdin = reqBody cmd.Stderr = &stderr 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 } } |