mirror of
https://github.com/zadam/trilium.git
synced 2025-06-05 01:18:44 +02:00
handle ERR_* errors gracefully
This commit is contained in:
parent
a3fa8341ba
commit
5b0f487f3f
@ -58,9 +58,7 @@ async function sync() {
|
||||
|
||||
if (e.message &&
|
||||
(e.message.includes('ECONNREFUSED') ||
|
||||
e.message.includes('ERR_CONNECTION_REFUSED') ||
|
||||
e.message.includes('ERR_ADDRESS_UNREACHABLE') ||
|
||||
e.message.includes('ERR_CONNECTION_RESET') ||
|
||||
e.message.includes('ERR_') || // node network errors
|
||||
e.message.includes('Bad Gateway'))) {
|
||||
|
||||
ws.syncFailed();
|
||||
|
Loading…
x
Reference in New Issue
Block a user