fix the not exist config file application
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -277,7 +277,7 @@ func init() { | ... | @@ -277,7 +277,7 @@ func init() { |
| 277 | SetLogFuncCall(true) | 277 | SetLogFuncCall(true) |
| 278 | 278 | ||
| 279 | err = ParseConfig() | 279 | err = ParseConfig() |
| 280 | if err != nil && !os.IsNotExist(err) { | 280 | if err != nil && os.IsNotExist(err) { |
| 281 | // for init if doesn't have app.conf will not panic | 281 | // for init if doesn't have app.conf will not panic |
| 282 | ac := config.NewFakeConfig() | 282 | ac := config.NewFakeConfig() |
| 283 | AppConfig = &beegoAppConfig{ac} | 283 | AppConfig = &beegoAppConfig{ac} | ... | ... |
-
Please register or sign in to post a comment