Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

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

Liang Dingdfea2cc9c000
diff --git a/kernel/api/import.go b/kernel/api/import.go
index fe018a73f4..c2df23c397 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]