mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-03 03:03:24 -04:00
fix(agents): match billing upgrade error prefix
This commit is contained in:
@@ -473,6 +473,7 @@ const ERROR_PATTERNS = {
|
||||
"insufficient credits",
|
||||
"credit balance",
|
||||
"plans & billing",
|
||||
"billing:",
|
||||
"insufficient balance",
|
||||
],
|
||||
auth: [
|
||||
@@ -534,7 +535,7 @@ export function isBillingErrorMessage(raw: string): boolean {
|
||||
if (!value) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
return matchesErrorPatterns(value, ERROR_PATTERNS.billing);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user