1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-26 03:01:28 +00:00

fix the not exist config file application

This commit is contained in:
astaxie 2014-11-06 11:12:00 +08:00
parent 54ba307f7f
commit bb795847da

View File

@ -277,7 +277,7 @@ func init() {
SetLogFuncCall(true)
err = ParseConfig()
if err != nil && !os.IsNotExist(err) {
if err != nil && os.IsNotExist(err) {
// for init if doesn't have app.conf will not panic
ac := config.NewFakeConfig()
AppConfig = &beegoAppConfig{ac}