diff --git a/rslib/ftl/network.ftl b/rslib/ftl/network.ftl index 0a97f861c..9fff6a92b 100644 --- a/rslib/ftl/network.ftl +++ b/rslib/ftl/network.ftl @@ -1,5 +1,5 @@ network-offline = Please check your internet connection. -network-timeout = Connection timed out. Please try again on a different network. +network-timeout = Connection timed out. Please try again. If you see frequent timeouts, please try a different network connection. network-proxy-auth = Your proxy requires authentication. network-other = A network error occurred. diff --git a/rslib/src/err.rs b/rslib/src/err.rs index 4ec230194..c07f3923d 100644 --- a/rslib/src/err.rs +++ b/rslib/src/err.rs @@ -261,6 +261,8 @@ fn guess_reqwest_error(mut info: String) -> AnkiError { } let kind = if info.contains("unreachable") || info.contains("dns") { NetworkErrorKind::Offline + } else if info.contains("timed out") { + NetworkErrorKind::Timeout } else { if info.contains("invalid type") { info = format!(