From 83b480761fc378f799204150c9834a4ab4960970 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Tue, 5 Nov 2019 11:01:11 -0800 Subject: [PATCH] db/repo: print more error info --- gogs.go | 2 +- internal/db/repo.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gogs.go b/gogs.go index a0a140c37..a59e6d7ef 100644 --- a/gogs.go +++ b/gogs.go @@ -17,7 +17,7 @@ import ( "gogs.io/gogs/internal/setting" ) -const Version = "0.11.96.1026" +const Version = "0.11.96.1105" func init() { setting.AppVer = Version diff --git a/internal/db/repo.go b/internal/db/repo.go index e8f7fe3fa..e9023264e 100644 --- a/internal/db/repo.go +++ b/internal/db/repo.go @@ -141,7 +141,7 @@ func NewRepoContext() { // Set git some configurations. if _, stderr, err := process.Exec("NewRepoContext(git config --global core.quotepath false)", "git", "config", "--global", "core.quotepath", "false"); err != nil { - log.Fatal(4, "Fail to execute 'git config --global core.quotepath false': %s", stderr) + log.Fatal(2, "Fail to execute 'git config --global core.quotepath false': %v - %s", err, stderr) } RemoveAllWithNotice("Clean up repository temporary data", filepath.Join(setting.AppDataPath, "tmp"))