Browse Source

Merge remote-tracking branch 'origin/dev' into dev

Vanessa 2 years ago
parent
commit
1312c0a597
1 changed files with 1 additions and 1 deletions
  1. 1 1
      kernel/model/sync.go

+ 1 - 1
kernel/model/sync.go

@@ -345,7 +345,7 @@ func formatErrorMsg(err error) string {
 		msg = Conf.Language(24)
 		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") {
 	} 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)
 		msg = Conf.Language(24)
-	} else if strings.Contains(msgLowerCase, "connection was forcibly closed") {
+	} else if strings.Contains(msgLowerCase, "connection was") || strings.Contains(msgLowerCase, "reset by peer") || strings.Contains(msgLowerCase, "refused") || strings.Contains(msgLowerCase, "socket") {
 		msg = Conf.Language(28)
 		msg = Conf.Language(28)
 	} else if strings.Contains(msgLowerCase, "cloud object not found") {
 	} else if strings.Contains(msgLowerCase, "cloud object not found") {
 		msg = Conf.Language(129)
 		msg = Conf.Language(129)