fix(config): error message for broken config file

closes #6731
This commit is contained in:
bergquist
2016-11-28 17:55:18 +01:00
parent a2d1cc1a46
commit ab2f109443
2 changed files with 3 additions and 1 deletions

View File

@@ -325,11 +325,12 @@ func loadSpecifedConfigFile(configFile string) error {
}
userConfig, err := ini.Load(configFile)
userConfig.BlockMode = false
if err != nil {
return fmt.Errorf("Failed to parse %v, %v", configFile, err)
}
userConfig.BlockMode = false
for _, section := range userConfig.Sections() {
for _, key := range section.Keys() {
if key.Value() == "" {