🎨 数据同步加入系统时间校验 https://github.com/siyuan-note/siyuan/issues/7669

This commit is contained in:
Liang Ding 2023-03-15 11:46:30 +08:00
parent 71eea62578
commit 2dfb5b38e9
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
8 changed files with 19 additions and 6 deletions

View file

@ -505,6 +505,8 @@ func formatErrorMsg(err error) string {
msg = Conf.Language(189)
} else if errors.Is(err, dejavu.ErrRepoFatalErr) {
msg = Conf.Language(23)
} else if errors.Is(err, cloud.ErrSystemTimeIncorrect) {
msg = Conf.Language(195)
} else {
msgLowerCase := strings.ToLower(msg)
if strings.Contains(msgLowerCase, "permission denied") || strings.Contains(msg, "access is denied") {