mirror of
https://github.com/ddworken/hishtory.git
synced 2025-01-23 06:38:52 +01:00
Add another error message substring for detecting errors due to being offline, to improve #30
This commit is contained in:
parent
e8ceb02138
commit
d4e01ceb11
@ -471,7 +471,8 @@ func IsOfflineError(err error) bool {
|
|||||||
strings.Contains(err.Error(), ": status_code=503") ||
|
strings.Contains(err.Error(), ": status_code=503") ||
|
||||||
strings.Contains(err.Error(), ": i/o timeout") ||
|
strings.Contains(err.Error(), ": i/o timeout") ||
|
||||||
strings.Contains(err.Error(), "connect: operation timed out") ||
|
strings.Contains(err.Error(), "connect: operation timed out") ||
|
||||||
strings.Contains(err.Error(), "net/http: TLS handshake timeout")
|
strings.Contains(err.Error(), "net/http: TLS handshake timeout") ||
|
||||||
|
strings.Contains(err.Error(), "connect: connection refused")
|
||||||
}
|
}
|
||||||
|
|
||||||
func normalizeEntryTimezone(entry data.HistoryEntry) data.HistoryEntry {
|
func normalizeEntryTimezone(entry data.HistoryEntry) data.HistoryEntry {
|
||||||
|
Loading…
Reference in New Issue
Block a user