From ff5e13995fb4b7fcb5487878eda49135cd31c044 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Fri, 29 Jul 2022 17:32:00 +0800 Subject: [PATCH] :art: Sync logging --- kernel/model/sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/model/sync.go b/kernel/model/sync.go index bc2646811..a7d646037 100644 --- a/kernel/model/sync.go +++ b/kernel/model/sync.go @@ -332,7 +332,7 @@ func formatErrorMsg(err error) string { msg = Conf.Language(172) + " " + err.Error() } 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") { + } 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"