mirror of
https://github.com/samsonjs/retrogit.git
synced 2026-03-25 09:25:49 +00:00
Ignore deadline exceeded errors.
This commit is contained in:
parent
6c662e2109
commit
438cb1fdac
1 changed files with 6 additions and 0 deletions
|
|
@ -276,6 +276,12 @@ func sendDigestErrorMail(e error, c context.Context, gitHubUserId int) {
|
|||
// Ignore 502s from GitHub, there's nothing we do about them.
|
||||
return
|
||||
}
|
||||
if appengine.IsTimeoutError(e) ||
|
||||
strings.Contains(e.Error(), "DEADLINE_EXCEEDED") {
|
||||
// Ignore deadline exceeded errors for URL fetches
|
||||
return
|
||||
}
|
||||
|
||||
errorMessage := &mail.Message{
|
||||
Sender: "RetroGit Admin <digests@retrogit.com>",
|
||||
To: []string{"mihai.parparita@gmail.com"},
|
||||
|
|
|
|||
Loading…
Reference in a new issue