Skip to content

Commit

Permalink
Merge pull request #59 from Donng/patch-2
Browse files Browse the repository at this point in the history
Optimize mapTo error tips.
  • Loading branch information
eddycjy authored Aug 18, 2019
2 parents 337d1ef + 07b28c8 commit b435857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/setting/setting.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,6 @@ func Setup() {
func mapTo(section string, v interface{}) {
err := cfg.Section(section).MapTo(v)
if err != nil {
log.Fatalf("Cfg.MapTo RedisSetting err: %v", err)
log.Fatalf("Cfg.MapTo %s err: %v", section, err)
}
}

0 comments on commit b435857

Please sign in to comment.