Pārlūkot izejas kodu

:art: sync logging

Liang Ding 3 gadi atpakaļ
vecāks
revīzija
4e634097d9
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      kernel/model/sync.go

+ 1 - 1
kernel/model/sync.go

@@ -327,7 +327,7 @@ func formatErrorMsg(err error) string {
 		msg = Conf.Language(23) + " " + err.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") {
 		msg = Conf.Language(24)
 		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 = Conf.Language(24) + " net/http timeout"
 	}
 	}
 	msg = msg + " v" + util.Ver
 	msg = msg + " v" + util.Ver