MCPcopy Create free account
hub / github.com/codeaashu/claude-code / getErrorKey

Function getErrorKey

src/services/mcp/useManageMCPConnections.ts:95–98  ·  view source on GitHub ↗

* Create a unique key for a plugin error to enable deduplication

(error: PluginError)

Source from the content-addressed store, hash-verified

93 * Create a unique key for a plugin error to enable deduplication
94 */
95function getErrorKey(error: PluginError): string {
96 const plugin = 'plugin' in error ? error.plugin : 'no-plugin'
97 return `${error.type}:${error.source}:${plugin}`
98}
99
100/**
101 * Add errors to AppState, deduplicating to avoid showing the same error multiple times

Callers 1

addErrorsToAppStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected