MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getErrnoCode

Function getErrnoCode

source code/utils/errors.ts:130–135  ·  view source on GitHub ↗
(e: unknown)

Source from the content-addressed store, hash-verified

128 * Replaces the `(e as NodeJS.ErrnoException).code` cast pattern.
129 */
130export function getErrnoCode(e: unknown): string | undefined {
131 if (e && typeof e === 'object' && 'code' in e && typeof e.code === 'string') {
132 return e.code
133 }
134 return undefined
135}
136
137/**
138 * True if the error is ENOENT (file or directory does not exist).

Callers 15

makeLogEntryReaderFunction · 0.85
runFunction · 0.85
callFunction · 0.85
validateAttachmentPathsFunction · 0.85
saveAgentToFileFunction · 0.85
deleteAgentFromFileFunction · 0.85
copyFileHistoryForResumeFunction · 0.85
persistToolResultFunction · 0.85
clearCwdEnvFilesFunction · 0.85
processMdRulesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected