MCPcopy
hub / github.com/cursor/community-plugins / logError

Function logError

apps/cursor/src/lib/plugins/scan.ts:131–137  ·  view source on GitHub ↗
(tag: string, msg: string, err: unknown)

Source from the content-addressed store, hash-verified

129}
130
131function logError(tag: string, msg: string, err: unknown) {
132 const detail =
133 err instanceof Error
134 ? { name: err.name, message: err.message, stack: err.stack }
135 : { value: String(err) };
136 console.error(`[scan:${tag}] ${msg}`, detail);
137}
138
139/**
140 * End-to-end scan for a single plugin id. Idempotent: re-reads current row

Callers 4

runPluginScanFunction · 0.70
findSimilarPluginsFunction · 0.70
cloneRepoFunction · 0.70
runSecurityAgentFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected