From dfea2cc9c000bdccf753c0c08767c11d6170cf64 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Mon, 29 Aug 2022 21:24:29 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=94=B9=E8=BF=9B=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E7=A9=BA=E6=96=87=E4=BB=B6=E8=AF=B7=E6=B1=82=E6=97=B6=E7=9A=84?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E6=96=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/api/import.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/api/import.go b/kernel/api/import.go index fe018a73f..c2df23c39 100644 --- a/kernel/api/import.go +++ b/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]