From 859133c0a20a26fc84313f2f0d2c43c6fb17be78 Mon Sep 17 00:00:00 2001 From: 1-6 Date: Wed, 26 Jul 2023 15:27:53 +0800 Subject: [PATCH] x --- core/plugin_core.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/plugin_core.go b/core/plugin_core.go index 7f319f8..f5fe431 100644 --- a/core/plugin_core.go +++ b/core/plugin_core.go @@ -120,7 +120,12 @@ func initPlugins() { os.RemoveAll(filepath.Dir(filename)) } else { fmt.Println("WriteFile", []byte(new)) - os.WriteFile(filename, []byte(new), 0755) + err := os.WriteFile(filename, []byte(new), 0755) + if err != nil { + return &storage.Final{ + Error: err, + } + } } return &storage.Final{ Now: "",