From ffbb45e567a7616540f0dfdfaeeeffd7617b53d4 Mon Sep 17 00:00:00 2001 From: ysqi Date: Sat, 27 Feb 2016 20:18:59 +0800 Subject: [PATCH] Revert "ignore parse include config file error" This reverts commit 891016a0a25cdda21b119d07972bddf0a2f995ea. --- config/ini.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/config/ini.go b/config/ini.go index 2cec7baa..da6f2b3a 100644 --- a/config/ini.go +++ b/config/ini.go @@ -21,7 +21,6 @@ import ( "fmt" "io" "io/ioutil" - "log" "os" "path" "strconv" @@ -135,9 +134,7 @@ func (ini *IniConfig) parseFile(name string) (*IniConfigContainer, error) { } i, err := ini.parseFile(otherfile) if err != nil { - // ignore error - log.Printf("[warn] handle config %q error, %s \n", key, err.Error()) - continue + return nil, err } for sec, dt := range i.data { if _, ok := cfg.data[sec]; !ok {