浏览代码

Merge remote-tracking branch 'origin/dev' into dev

Vanessa 2 年之前
父节点
当前提交
3e988fa9d0
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      kernel/api/import.go

+ 2 - 2
kernel/api/import.go

@@ -43,9 +43,9 @@ func importSY(c *gin.Context) {
 
 	files := form.File["file"]
 	if 1 > len(files) {
-		logging.LogErrorf("parse import .sy.zip failed: %s", err)
+		logging.LogErrorf("parse import .sy.zip failed, no file found")
 		ret.Code = -1
-		ret.Msg = err.Error()
+		ret.Msg = "no file found"
 		return
 	}
 	file := files[0]