🎨 系统唤醒后网络报错 no such host Fix https://github.com/siyuan-note/siyuan/issues/5442

This commit is contained in:
Liang Ding 2022-07-17 21:36:41 +08:00
parent 9cddbab99e
commit 1f70b6e94d
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
6 changed files with 7 additions and 5 deletions

View file

@ -299,6 +299,8 @@ func formatErrorMsg(err error) string {
msg = Conf.Language(172) + " " + err.Error()
} else if strings.Contains(msg, "repo fatal error") {
msg = Conf.Language(23) + " " + err.Error()
} else if strings.Contains(msg, "no such host") || strings.Contains(msg, "connection failed") {
msg = Conf.Language(24)
}
msg = msg + " v" + util.Ver
return msg