浏览代码

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