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