summaryrefslogtreecommitdiff
path: root/internal/executor/ratelimit.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/executor/ratelimit.go')
-rw-r--r--internal/executor/ratelimit.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/executor/ratelimit.go b/internal/executor/ratelimit.go
index deaad18..aa9df99 100644
--- a/internal/executor/ratelimit.go
+++ b/internal/executor/ratelimit.go
@@ -34,7 +34,9 @@ func isQuotaExhausted(err error) bool {
}
msg := strings.ToLower(err.Error())
return strings.Contains(msg, "hit your limit") ||
- strings.Contains(msg, "you've hit your limit")
+ strings.Contains(msg, "you've hit your limit") ||
+ strings.Contains(msg, "you have hit your limit") ||
+ strings.Contains(msg, "rate limit reached (rejected)")
}
// parseRetryAfter extracts a Retry-After duration from an error message.