mirror of
https://github.com/astaxie/beego.git
synced 2025-07-23 03:15:33 +00:00
fix the not exist config file application
This commit is contained in:
@@ -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}
|
||||
|
Reference in New Issue
Block a user