An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: sync debug logging
Liang Ding51032b5a67c2
diff --git a/kernel/model/sync.go b/kernel/model/sync.goindex 40c43e4d41..7d270c4bb7 100644--- a/kernel/model/sync.go+++ b/kernel/model/sync.go@@ -312,17 +312,18 @@ func ListCloudSyncDir() (syncDirs []*Sync, hSize string, err error) {func formatErrorMsg(err error) string {msg := err.Error()- if strings.Contains(msg, "Permission denied") || strings.Contains(msg, "Access is denied") {+ msgLowerCase := strings.ToLower(msg)+ if strings.Contains(msgLowerCase, "permission denied") || strings.Contains(msg, "access is denied") {msg = Conf.Language(33) + " " + err.Error()- } else if strings.Contains(msg, "Device or resource busy") {+ } else if strings.Contains(msgLowerCase, "device or resource busy") {msg = Conf.Language(85) + " " + err.Error()- } else if strings.Contains(msg, "cipher: message authentication failed") {+ } else if strings.Contains(msgLowerCase, "cipher: message authentication failed") {msg = Conf.Language(172) + " " + err.Error()- } else if strings.Contains(msg, "repo fatal error") {+ } else if strings.Contains(msgLowerCase, "repo fatal error") {msg = Conf.Language(23) + " " + err.Error()- } else if strings.Contains(msg, "no such host") || strings.Contains(msg, "connection failed") {+ } else if strings.Contains(msgLowerCase, "no such host") || strings.Contains(msgLowerCase, "connection failed") {msg = Conf.Language(24)- } else if strings.Contains(msg, "net/http: request canceled while waiting for connection") {+ } else if strings.Contains(msgLowerCase, "net/http: request canceled while waiting for connection") {msg = Conf.Language(24) + " net/http timeout"}msg = msg + " v" + util.Ver