🎨 改进云端同步报错文案 https://ld246.com/article/1661774969054

This commit is contained in:
Liang Ding 2022-08-29 20:30:57 +08:00
parent bcbbb43059
commit 344f0bf483
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
6 changed files with 7 additions and 5 deletions

View file

@ -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)
}