fix: add errorName-based quota detection and strengthen test coverage

This commit is contained in:
MoerAI
2026-03-23 15:19:09 +09:00
parent 62d2704009
commit f16d55ad95
2 changed files with 27 additions and 0 deletions
@@ -120,6 +120,9 @@ export function classifyErrorType(error: unknown): string | undefined {
}
if (
errorName?.includes("quotaexceeded") ||
errorName?.includes("insufficientquota") ||
errorName?.includes("billingerror") ||
/quota.?exceeded/i.test(message) ||
/subscription.*quota/i.test(message) ||
/insufficient.?quota/i.test(message) ||