Browse Source

Properly handle config parsing errors because logging is not setup yet

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

+ 1 - 3
config.go

@@ -201,9 +201,7 @@ func ConfigLoad() {
 	)
 	)
 
 
 	if err != nil {
 	if err != nil {
-		//log.WithField("config_error", err).
-		//	Fatal("Config parsing error")
-		os.Exit(0)
+		os.Exit(1)
 	}
 	}
 
 
 	// Set up logging as soon as possible
 	// Set up logging as soon as possible