🎨 改进网络超时报错提示

This commit is contained in:
Liang Ding 2022-07-19 23:43:46 +08:00
parent d4ea798b16
commit b78101a140
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -323,7 +323,7 @@ func formatErrorMsg(err error) string {
} else if strings.Contains(msg, "no such host") || strings.Contains(msg, "connection failed") {
msg = Conf.Language(24)
} else if strings.Contains(msg, "net/http: request canceled while waiting for connection") {
msg = Conf.Language(24)
msg = Conf.Language(24) + " net/http timeout"
}
msg = msg + " v" + util.Ver
return msg