This commit is contained in:
wangchuxiao 2023-03-08 20:02:34 +08:00
parent 4c5210af59
commit 040fd345e0

View File

@ -511,6 +511,7 @@ func (c *config) initConfig(config interface{}, configName, configFolderPath str
}()
_, err := os.Stat(configPath)
if err != nil {
fmt.Println(err.Error())
if !os.IsNotExist(err) {
return err
}