MCPcopy Create free account
hub / github.com/ChinaSiro/claude-code-sourcemap / getErrorLogByIndex

Function getErrorLogByIndex

restored-src/src/utils/log.ts:218–223  ·  view source on GitHub ↗
(
  index: number,
)

Source from the content-addressed store, hash-verified

216 * @returns Log data or null if not found
217 */
218export async function getErrorLogByIndex(
219 index: number,
220): Promise<LogOption | null> {
221 const logs = await loadErrorLogs()
222 return logs[index] || null
223}
224
225/**
226 * Internal function to load and process logs from a specified path

Callers

nothing calls this directly

Calls 1

loadErrorLogsFunction · 0.85

Tested by

no test coverage detected