aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-30 11:09:59 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-30 11:09:59 -0400
commit9f91dee53fc602a939abf1219ec6ddb128c2067c (patch)
tree7fbad8828a80a7cfa76123c6922712f9fdc7e743 /modules
parenta6e12aaef6344fff43745baa755c6afa11935550 (diff)
downloadgitea-9f91dee53fc602a939abf1219ec6ddb128c2067c.tar.gz
gitea-9f91dee53fc602a939abf1219ec6ddb128c2067c.zip
Bug fix #45
Diffstat (limited to 'modules')
-rw-r--r--modules/base/conf.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/base/conf.go b/modules/base/conf.go
index f696d083f7..0233d00335 100644
--- a/modules/base/conf.go
+++ b/modules/base/conf.go
@@ -253,7 +253,7 @@ func NewConfigContext() {
cfgPath := filepath.Join(workDir, "conf/app.ini")
Cfg, err = goconfig.LoadConfigFile(cfgPath)
if err != nil {
- fmt.Printf("Cannot load config file '%s'\n", cfgPath)
+ fmt.Printf("Cannot load config file(%s): %v\n", cfgPath, err)
os.Exit(2)
}
Cfg.BlockMode = false
@@ -261,7 +261,7 @@ func NewConfigContext() {
cfgPath = filepath.Join(workDir, "custom/conf/app.ini")
if com.IsFile(cfgPath) {
if err = Cfg.AppendFiles(cfgPath); err != nil {
- fmt.Printf("Cannot load config file '%s'\n", cfgPath)
+ fmt.Printf("Cannot load config file(%s): %v\n", cfgPath, err)
os.Exit(2)
}
}