mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve cloud sync error report text https://github.com/siyuan-note/siyuan/issues/8675
This commit is contained in:
parent
4d9807c8bb
commit
943e155203
8 changed files with 22 additions and 8 deletions
|
|
@ -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") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue