mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 数据仓库损坏提示文案去掉报错细节
This commit is contained in:
parent
e5f9d6a395
commit
e43a916930
1 changed files with 1 additions and 1 deletions
|
|
@ -348,7 +348,7 @@ func formatErrorMsg(err error) string {
|
|||
} else if strings.Contains(msgLowerCase, "cipher: message authentication failed") {
|
||||
msg = Conf.Language(135)
|
||||
} else if strings.Contains(msgLowerCase, "repo fatal error") {
|
||||
msg = Conf.Language(23) + " " + err.Error()
|
||||
msg = Conf.Language(23)
|
||||
} else if strings.Contains(msgLowerCase, "no such host") || strings.Contains(msgLowerCase, "connection failed") || strings.Contains(msgLowerCase, "hostname resolution") || strings.Contains(msgLowerCase, "No address associated with hostname") {
|
||||
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") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue