From bb795847da19e2be91c3a5af05b31f52c5e52dab Mon Sep 17 00:00:00 2001 From: astaxie Date: Thu, 6 Nov 2014 11:12:00 +0800 Subject: [PATCH] fix the not exist config file application --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.go b/config.go index f4d0aba2..7d2a94de 100644 --- a/config.go +++ b/config.go @@ -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}