mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-26 15:02:00 +02:00
Add additional error to IsOfflineError
This commit is contained in:
parent
1c2f9cf36c
commit
c3782dda18
@ -497,6 +497,7 @@ func IsOfflineError(err error) bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if strings.Contains(err.Error(), "dial tcp: lookup api.hishtory.dev") ||
|
if strings.Contains(err.Error(), "dial tcp: lookup api.hishtory.dev") ||
|
||||||
|
strings.Contains(err.Error(), ": no such host") ||
|
||||||
strings.Contains(err.Error(), "connect: network is unreachable") ||
|
strings.Contains(err.Error(), "connect: network is unreachable") ||
|
||||||
strings.Contains(err.Error(), "read: connection reset by peer") ||
|
strings.Contains(err.Error(), "read: connection reset by peer") ||
|
||||||
strings.Contains(err.Error(), ": EOF") ||
|
strings.Contains(err.Error(), ": EOF") ||
|
||||||
|
Loading…
x
Reference in New Issue
Block a user