Browse Source

routes/repo/http: fix wrong format type

pull/5340/head
Unknwon 7 years ago
parent
commit
e5ddbcab7d
No known key found for this signature in database
GPG Key ID: 7A02C406FAC875A2
  1. 2
      gogs.go
  2. 2
      routes/repo/http.go
  3. 2
      templates/.VERSION

2
gogs.go

@ -16,7 +16,7 @@ import (
"github.com/gogs/gogs/pkg/setting" "github.com/gogs/gogs/pkg/setting"
) )
const APP_VER = "0.11.56.0611" const APP_VER = "0.11.56.0613"
func init() { func init() {
setting.AppVer = APP_VER setting.AppVer = APP_VER

2
routes/repo/http.go

@ -293,7 +293,7 @@ func serviceRPC(h serviceHandler, service string) {
cmd.Stderr = &stderr cmd.Stderr = &stderr
cmd.Stdin = reqBody cmd.Stdin = reqBody
if err = cmd.Run(); err != nil { 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) h.w.WriteHeader(http.StatusInternalServerError)
return return
} }

2
templates/.VERSION

@ -1 +1 @@
0.11.56.0611 0.11.56.0613
Loading…
Cancel
Save