1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-22 20:40:50 +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()
if err != nil && !os.IsNotExist(err) {
// panic unless the err is can not find default configuration file
panic(err)
// for init if doesn't have app.conf will not panic
Info(err)
}
}