(error: unknown, action: string)
| 66 | * Helper function to handle marketplace command errors consistently. |
| 67 | */ |
| 68 | export function handleMarketplaceError(error: unknown, action: string): never { |
| 69 | logError(error) |
| 70 | cliError(`${figures.cross} Failed to ${action}: ${errorMessage(error)}`) |
| 71 | } |
| 72 | |
| 73 | function printValidationResult(result: ValidationResult): void { |
| 74 | if (result.errors.length > 0) { |
no test coverage detected