for init if doesn't have app.conf will not panic
Showing
1 changed file
with
2 additions
and
2 deletions
| ... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment