MCPcopy
hub / github.com/codeaashu/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

readPDFFunction · 0.70
extractPDFPagesFunction · 0.70
clearCwdEnvFilesFunction · 0.70
processSessionFilesFunction · 0.70
getAllSessionFilesFunction · 0.70
getTaskFunction · 0.70
claimTaskFunction · 0.70
claimTaskWithBusyCheckFunction · 0.70
readTeamMembersFunction · 0.70
execFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected