优化 错误信息

This commit is contained in:
dengsgo 2019-05-15 11:38:03 +08:00
parent 9e73a0901c
commit 8181a8f0c5

View File

@ -47,10 +47,12 @@ func parseConfig() {
}
err = yaml.Unmarshal(fc, cfg)
if err != nil {
log.Panicln(PreError, "parsed filegirl.yaml failed: ", err)
log.Println(PreError, "parsed filegirl.yaml failed: ", err)
os.Exit(0)
}
if cfg.Core.Version > Version {
log.Panicln(PreError, "current fileboy support max version : ", Version)
log.Println(PreError, "current fileboy support max version : ", Version)
os.Exit(0)
}
// init map
cfg.Monitor.TypesMap = map[string]bool{}