(error: any)
| 132 | } |
| 133 | |
| 134 | export function getCLIErrorType(error: any): string { |
| 135 | if (isConfigError(error)) return "config_error"; |
| 136 | if (isAuthenticationError(error)) return "auth_error"; |
| 137 | if (isValidationError(error)) return "validation_error"; |
| 138 | if (isLocalizationError(error)) return "locale_error"; |
| 139 | if (isBucketProcessingError(error)) return "bucket_error"; |
| 140 | if (error instanceof CLIError) return "cli_error"; |
| 141 | return "unknown_error"; |
| 142 | } |
| 143 | |
| 144 | // Error detail interface for consistent tracking |
| 145 | export interface ErrorDetail { |
no test coverage detected