From b16be158034022421b90b1dc78e60ba4e006c007 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 8 Aug 2019 00:33:29 +0800 Subject: [PATCH] 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 --- routers/repo/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/repo/http.go b/routers/repo/http.go index a9a5cedc207..c0bf830969e 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 } }