b733b984 by astaxie

for init if doesn't have app.conf will not panic

1 parent b97d9896
...@@ -122,8 +122,8 @@ func init() { ...@@ -122,8 +122,8 @@ func init() {
122 122
123 err := ParseConfig() 123 err := ParseConfig()
124 if err != nil && !os.IsNotExist(err) { 124 if err != nil && !os.IsNotExist(err) {
125 // panic unless the err is can not find default configuration file 125 // for init if doesn't have app.conf will not panic
126 panic(err) 126 Info(err)
127 } 127 }
128 } 128 }
129 129
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!