mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-22 08:16:10 +01:00
🎨 改进云端同步报错文案 https://ld246.com/article/1661774969054
This commit is contained in:
parent
bcbbb43059
commit
344f0bf483
6 changed files with 7 additions and 5 deletions
|
|
@ -344,6 +344,8 @@ func formatErrorMsg(err error) string {
|
|||
msg = Conf.Language(24)
|
||||
} else if strings.Contains(msgLowerCase, "net/http: request canceled while waiting for connection") || strings.Contains(msgLowerCase, "exceeded while awaiting") || strings.Contains(msgLowerCase, "context deadline exceeded") {
|
||||
msg = Conf.Language(24)
|
||||
} else if strings.Contains(msgLowerCase, "connection was forcibly closed") {
|
||||
msg = Conf.Language(28)
|
||||
} else if strings.Contains(msgLowerCase, "cloud object not found") {
|
||||
msg = Conf.Language(129)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue