🎨 Logging

This commit is contained in:
Liang Ding 2022-07-30 22:18:38 +08:00
parent 6926921503
commit df29a037cc
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
6 changed files with 7 additions and 7 deletions

View file

@ -334,8 +334,8 @@ func formatErrorMsg(err error) string {
msg = Conf.Language(23) + " " + err.Error()
} else if strings.Contains(msgLowerCase, "no such host") || strings.Contains(msgLowerCase, "connection failed") || strings.Contains(msgLowerCase, "hostname resolution") {
msg = Conf.Language(24)
} else if strings.Contains(msgLowerCase, "net/http: request canceled while waiting for connection") || strings.Contains(msgLowerCase, "exceeded while awaiting") {
msg = Conf.Language(24) + " net/http timeout"
} 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, "cloud object not found") {
msg = Conf.Language(129)
}