🎨 Improve S3/WebDAV data sync error message Fix https://github.com/siyuan-note/siyuan/issues/9626

This commit is contained in:
Daniel 2023-11-10 23:00:17 +08:00
parent 22f78326f2
commit eb6f892a47
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
8 changed files with 15 additions and 6 deletions

View file

@ -534,6 +534,8 @@ func formatRepoErrorMsg(err error) string {
msg = Conf.Language(212)
} else if errors.Is(err, cloud.ErrCloudCheckFailed) {
msg = Conf.Language(213)
} else if errors.Is(err, cloud.ErrCloudServiceUnavailable) {
msg = Conf.language(219)
} else {
msgLowerCase := strings.ToLower(msg)
if strings.Contains(msgLowerCase, "permission denied") || strings.Contains(msg, "access is denied") {