Skip to content

Commit

Permalink
panic parse config error
Browse files Browse the repository at this point in the history
  • Loading branch information
ysqi committed Feb 14, 2016
1 parent 2b23764 commit d5f07d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ func init() {
return
}

parseConfig(appConfigPath)
if err := parseConfig(appConfigPath); err != nil {
panic(err)
}
}

// now only support ini, next will support json.
Expand Down

0 comments on commit d5f07d6

Please sign in to comment.