From 4e634097d9b97e5e4d98a5e649f3ae6809a4acc9 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 21 Jul 2022 14:43:24 +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 d30733ad9..2167ac441 100644 --- a/kernel/model/sync.go +++ b/kernel/model/sync.go @@ -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