* Clear GCP auth caches if appropriate. * @returns true if action was taken.
(error: unknown)
| 729 | * @returns true if action was taken. |
| 730 | */ |
| 731 | function handleGcpCredentialError(error: unknown): boolean { |
| 732 | if (isVertexAuthError(error)) { |
| 733 | clearCurrentGcpCredentialsCache() |
| 734 | return true |
| 735 | } |
| 736 | return false |
| 737 | } |
| 738 | |
| 739 | function shouldRetry(error: APIError): boolean { |
| 740 | // Never retry mock errors - they're from /mock-limits command for testing |
no test coverage detected