mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 23:38:49 +01:00
🎨 改进网络超时报错提示
This commit is contained in:
parent
a937434bd1
commit
d4ea798b16
1 changed files with 2 additions and 0 deletions
|
|
@ -322,6 +322,8 @@ func formatErrorMsg(err error) string {
|
|||
msg = Conf.Language(23) + " " + err.Error()
|
||||
} else if strings.Contains(msg, "no such host") || strings.Contains(msg, "connection failed") {
|
||||
msg = Conf.Language(24)
|
||||
} else if strings.Contains(msg, "net/http: request canceled while waiting for connection") {
|
||||
msg = Conf.Language(24)
|
||||
}
|
||||
msg = msg + " v" + util.Ver
|
||||
return msg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue