mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-04 00:02:49 +08:00
🎨 改进同步报错提示文案
This commit is contained in:
parent
6341073ebe
commit
ff13cf30e4
@ -345,7 +345,7 @@ 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") {
|
||||
} else if strings.Contains(msgLowerCase, "connection was") || strings.Contains(msgLowerCase, "reset by peer") {
|
||||
msg = Conf.Language(28)
|
||||
} else if strings.Contains(msgLowerCase, "cloud object not found") {
|
||||
msg = Conf.Language(129)
|
||||
|
Loading…
Reference in New Issue
Block a user