install error

This commit is contained in:
TenderIronh
2021-12-21 14:41:07 +08:00
parent 2d6521be43
commit a528441342
4 changed files with 25 additions and 14 deletions
+4 -1
View File
@@ -48,7 +48,10 @@ func (c *Config) add(app AppConfig) {
func (c *Config) save() {
data, _ := json.MarshalIndent(c, "", "")
ioutil.WriteFile("config.json", data, 0644)
err := ioutil.WriteFile("config.json", data, 0644)
if err != nil {
gLog.Println(LevelERROR, "save config.json error:", err)
}
}
func (c *Config) load() error {