Skip to content

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

:bug: Correct misleading repository error logging https://github.com/siyuan-note/siyuan/issues/19109

Daniel17468a8df61e
diff --git a/kernel/model/sync.go b/kernel/model/sync.go
index 2aefe12cae..49a7f3c2c7 100644
--- a/kernel/model/sync.go
+++ b/kernel/model/sync.go
@@ -788,7 +788,7 @@ func formatRepoErrorMsg(err error) string {
} else if errors.Is(err, cloud.ErrDecryptFailed) {
msg = Conf.Language(135)
} else {
- logging.LogErrorf("sync failed caused by network: %s", msg)
+ logging.LogErrorf("unclassified repository error: %s", msg)
msgLowerCase := strings.ToLower(msg)
if strings.Contains(msgLowerCase, "permission denied") || strings.Contains(msg, "access is denied") {
msg = Conf.Language(33)