From e43a91693085a1eb6f6bb6659c1f4613f25bc6d0 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Sun, 9 Oct 2022 22:39:18 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E6=95=B0=E6=8D=AE=E4=BB=93=E5=BA=93?= =?UTF-8?q?=E6=8D=9F=E5=9D=8F=E6=8F=90=E7=A4=BA=E6=96=87=E6=A1=88=E5=8E=BB?= =?UTF-8?q?=E6=8E=89=E6=8A=A5=E9=94=99=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 380105bf1..54ee0668b 100644 --- a/kernel/model/sync.go +++ b/kernel/model/sync.go @@ -348,7 +348,7 @@ func formatErrorMsg(err error) string { } else if strings.Contains(msgLowerCase, "cipher: message authentication failed") { msg = Conf.Language(135) } else if strings.Contains(msgLowerCase, "repo fatal error") { - msg = Conf.Language(23) + " " + err.Error() + msg = Conf.Language(23) } 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") {