🎨 sync logging

This commit is contained in:
Liang Ding 2022-07-21 14:43:24 +08:00
parent 5f89c9a24a
commit 4e634097d9
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -327,7 +327,7 @@ func formatErrorMsg(err error) string {
msg = Conf.Language(23) + " " + err.Error()
} else if strings.Contains(msgLowerCase, "no such host") || strings.Contains(msgLowerCase, "connection failed") {
msg = Conf.Language(24)
} else if strings.Contains(msgLowerCase, "net/http: request canceled while waiting for connection") {
} 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"
}
msg = msg + " v" + util.Ver