🎨 Improve cloud sync error report text https://github.com/siyuan-note/siyuan/issues/8675

This commit is contained in:
Daniel 2023-07-04 19:16:35 +08:00
parent 4d9807c8bb
commit 943e155203
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
8 changed files with 22 additions and 8 deletions

View file

@ -513,6 +513,10 @@ func formatRepoErrorMsg(err error) string {
msg = Conf.Language(23)
} else if errors.Is(err, cloud.ErrSystemTimeIncorrect) {
msg = Conf.Language(195)
} else if errors.Is(err, cloud.ErrDeprecatedVersion) {
msg = Conf.Language(212)
} else if errors.Is(err, cloud.ErrCloudCheckFailed) {
msg = Conf.Language(213)
} else {
msgLowerCase := strings.ToLower(msg)
if strings.Contains(msgLowerCase, "permission denied") || strings.Contains(msg, "access is denied") {