Преглед изворни кода

Properly handle config parsing errors because logging is not setup yet

Bernhard Froehlich пре 3 година
родитељ
комит
8cc31a918b
1 измењених фајлова са 1 додато и 3 уклоњено
  1. 1 3
      config.go

+ 1 - 3
config.go

@@ -201,9 +201,7 @@ func ConfigLoad() {
 	)
 
 	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