1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-22 18:30:56 +00:00

for init if doesn't have app.conf will not panic

This commit is contained in:
astaxie 2013-12-10 00:17:22 +08:00
parent b97d9896a4
commit b733b98408

View File

@ -122,8 +122,8 @@ func init() {
err := ParseConfig() err := ParseConfig()
if err != nil && !os.IsNotExist(err) { if err != nil && !os.IsNotExist(err) {
// panic unless the err is can not find default configuration file // for init if doesn't have app.conf will not panic
panic(err) Info(err)
} }
} }