mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-26 18:26:09 +01:00
🐛 网络超时导致同步失败时提示报错异常 Fix https://github.com/siyuan-note/siyuan/issues/6265
This commit is contained in:
parent
4e27798f53
commit
4aec262a86
3 changed files with 25 additions and 25 deletions
|
|
@ -351,7 +351,7 @@ func formatErrorMsg(err error) string {
|
|||
msg = Conf.Language(23)
|
||||
} else if strings.Contains(msgLowerCase, "no such host") || strings.Contains(msgLowerCase, "connection failed") || strings.Contains(msgLowerCase, "hostname resolution") || strings.Contains(msgLowerCase, "No address associated with hostname") {
|
||||
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") {
|
||||
} 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") || strings.Contains(msgLowerCase, "timeout") || strings.Contains(msgLowerCase, "context cancellation while reading body") {
|
||||
msg = Conf.Language(24)
|
||||
} else if strings.Contains(msgLowerCase, "connection was") || strings.Contains(msgLowerCase, "reset by peer") || strings.Contains(msgLowerCase, "refused") || strings.Contains(msgLowerCase, "socket") {
|
||||
msg = Conf.Language(28)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue