This commit is contained in:
cdle
2023-06-08 07:14:50 +08:00
parent 78a0943966
commit bc96db7ba3
5 changed files with 38 additions and 5 deletions
+2 -3
View File
@@ -74,8 +74,8 @@ func Init() {
}
}
defer f.Close()
i, _ := io.Copy(f, resp.Body)
if i < 2646140 {
i, err := io.Copy(f, resp.Body)
if i < 2646140 || err != nil {
console.Error("创建编译文件错误:%v", i)
return &storage.Final{
Error: fmt.Errorf("创建编译文件错误:%v", i),
@@ -87,7 +87,6 @@ func Init() {
time.Sleep(time.Second)
utils.Daemon("ready")
}()
return nil
} else {
console.Debug("正在删除旧程序错误...")