MCPcopy
hub / github.com/claude-code-best/claude-code / errorMessage

Function errorMessage

src/utils/errors.ts:119–121  ·  view source on GitHub ↗
(e: unknown)

Source from the content-addressed store, hash-verified

117 * Use when you only need the message (e.g., for logging or display).
118 */
119export function errorMessage(e: unknown): string {
120 return e instanceof Error ? e.message : String(e)
121}
122
123/**
124 * Extract the errno code (e.g., 'ENOENT', 'EACCES') from a caught error.

Callers 15

errors.test.tsFile · 0.90
readPDFFunction · 0.70
extractPDFPagesFunction · 0.70
clearCwdEnvFilesFunction · 0.70
startUdsMessagingFunction · 0.70
logRuntimeErrorFunction · 0.70
sideQueryFunction · 0.70
processSessionFilesFunction · 0.70
getAllSessionFilesFunction · 0.70
getTaskFunction · 0.70
claimTaskFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected