Browse Source

config: Show error output from parser if it fails (#79)

Bernhard Froehlich 3 years ago
parent
commit
dffe0bb5bb
1 changed files with 1 additions and 0 deletions
  1. 1 0
      config.go

+ 1 - 0
config.go

@@ -200,6 +200,7 @@ func ConfigLoad() {
 		ff.WithConfigFileFlag("config"),
 		ff.WithConfigFileFlag("config"),
 		ff.WithConfigFileParser(IniParser),
 		ff.WithConfigFileParser(IniParser),
 	); err != nil {
 	); err != nil {
+		fmt.Fprintf(os.Stderr, "error: %v\n", err)
 		os.Exit(1)
 		os.Exit(1)
 	}
 	}