🎨 改进同步域名解析失败报错文案
This commit is contained in:
parent
a44227a4c1
commit
689db0850b
1 changed files with 1 additions and 1 deletions
|
@ -341,7 +341,7 @@ func formatErrorMsg(err error) string {
|
|||
msg = Conf.Language(135)
|
||||
} else if strings.Contains(msgLowerCase, "repo fatal error") {
|
||||
msg = Conf.Language(23) + " " + err.Error()
|
||||
} else if strings.Contains(msgLowerCase, "no such host") || strings.Contains(msgLowerCase, "connection failed") || strings.Contains(msgLowerCase, "hostname resolution") {
|
||||
} 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") {
|
||||
msg = Conf.Language(24)
|
||||
|
|
Loading…
Add table
Reference in a new issue