From b733b98408fa67eb3c25621230c48e393444b74b Mon Sep 17 00:00:00 2001 From: astaxie Date: Tue, 10 Dec 2013 00:17:22 +0800 Subject: [PATCH] for init if doesn't have app.conf will not panic --- config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.go b/config.go index 738ef4dd..4e2691cc 100644 --- a/config.go +++ b/config.go @@ -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) } }