🎨 系统唤醒后网络报错 no such host
Fix https://github.com/siyuan-note/siyuan/issues/5442
This commit is contained in:
parent
9cddbab99e
commit
1f70b6e94d
6 changed files with 7 additions and 5 deletions
|
@ -779,7 +779,7 @@
|
|||
"21": "Please enter the captcha",
|
||||
"22": "The captcha is incorrect",
|
||||
"23": "The data repo is damaged due to external changes (such as using a third-party real-time synchronization disk), please reset the data repo",
|
||||
"24": "TODO",
|
||||
"24": "The network is abnormal, please try again later",
|
||||
"25": "The attribute name only supports English letters and digits",
|
||||
"26": "Please initialize the data repo key first in [Settings - About - Data repo key]",
|
||||
"27": "Data integrity check failed",
|
||||
|
|
|
@ -779,7 +779,7 @@
|
|||
"21": "Por favor ingrese el captcha",
|
||||
"22": "El captcha es incorrecto",
|
||||
"23": "El repositorio de datos está dañado debido a cambios externos (como el uso de un disco de sincronización en tiempo real de terceros), restablezca el repositorio de datos",
|
||||
"24": "TODO",
|
||||
"24": "La red es anómala, inténtalo de nuevo más tarde",
|
||||
"25": "El nombre del atributo sólo admite letras y dígitos en inglés",
|
||||
"26": "Por favor, inicialice primero la clave de repositorio de datos en [Configuración - Acerca de - Clave de repositorio de datos]",
|
||||
"27": "Falló la comprobación de la integridad de los datos",
|
||||
|
|
|
@ -779,7 +779,7 @@
|
|||
"21": "Veuillez entrer le captcha",
|
||||
"22": "Le captcha est incorrect",
|
||||
"23": "Le référentiel de données est endommagé en raison de modifications externes (comme l'utilisation d'un disque de synchronisation en temps réel tiers), veuillez réinitialiser le référentiel de données",
|
||||
"24": "TODO",
|
||||
"24": "Le réseau est anormal, veuillez réessayer plus tard",
|
||||
"25": "Le nom de l'attribut ne supporte que les lettres et les chiffres anglais.",
|
||||
"26": "Veuillez d'abord initialiser la clé du référentiel de données dans [Paramètres - À propos - Clé du référentiel de données]",
|
||||
"27": "La vérification de l'intégrité des données a échoué",
|
||||
|
|
|
@ -779,7 +779,7 @@
|
|||
"21": "請輸入驗證碼",
|
||||
"22": "驗證碼不正確",
|
||||
"23": "數據倉庫因為外部變更損壞(比如使用第三方實時同步盤),請重置數據倉庫",
|
||||
"24": "TODO",
|
||||
"24": "網絡異常,請稍後再試",
|
||||
"25": "屬性名僅支援英文字母和阿拉伯數字",
|
||||
"26": "請先在 [設置 - 關於 - 數據倉庫密鑰] 中初始化數據倉庫密鑰",
|
||||
"27": "數據完整性校驗失敗",
|
||||
|
|
|
@ -780,7 +780,7 @@
|
|||
"21": "请输入验证码",
|
||||
"22": "验证码不正确",
|
||||
"23": "数据仓库因为外部变更损坏(比如使用第三方实时同步盘),请重置数据仓库",
|
||||
"24": "TODO",
|
||||
"24": "网络异常,请稍后再试",
|
||||
"25": "属性名仅支持英文字母和阿拉伯数字",
|
||||
"26": "请先在 [设置 - 关于 - 数据仓库密钥] 中初始化数据仓库密钥",
|
||||
"27": "数据完整性校验失败",
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue