mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 Sync logging
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user