mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve S3/WebDAV data sync error message Fix https://github.com/siyuan-note/siyuan/issues/9626
This commit is contained in:
parent
22f78326f2
commit
eb6f892a47
8 changed files with 15 additions and 6 deletions
|
|
@ -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") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue