🎨 改进导入空文件请求时的报错文案

This commit is contained in:
Liang Ding 2022-08-29 21:24:29 +08:00
parent 4ede229dd0
commit dfea2cc9c0
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -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]