* Clear GCP auth caches if appropriate. * @returns true if action was taken.
(error: unknown)
| 686 | * @returns true if action was taken. |
| 687 | */ |
| 688 | function handleGcpCredentialError(error: unknown): boolean { |
| 689 | if (isVertexAuthError(error)) { |
| 690 | clearGcpCredentialsCache() |
| 691 | return true |
| 692 | } |
| 693 | return false |
| 694 | } |
| 695 | |
| 696 | function shouldRetry(error: APIError): boolean { |
| 697 | // Never retry mock errors - they're from /mock-limits command for testing |
no test coverage detected