MCPcopy
hub / github.com/codeaashu/claude-code / handleMarketplaceError

Function handleMarketplaceError

src/cli/handlers/plugins.ts:68–71  ·  view source on GitHub ↗
(error: unknown, action: string)

Source from the content-addressed store, hash-verified

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

Callers 4

marketplaceAddHandlerFunction · 0.85
marketplaceListHandlerFunction · 0.85
marketplaceRemoveHandlerFunction · 0.85
marketplaceUpdateHandlerFunction · 0.85

Calls 3

cliErrorFunction · 0.85
logErrorFunction · 0.50
errorMessageFunction · 0.50

Tested by

no test coverage detected