MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / recordParseFailure

Method recordParseFailure

src/extraction/index.ts:1776–1786  ·  view source on GitHub ↗
(filePath: string, err: unknown)

Source from the content-addressed store, hash-verified

1774 };
1775
1776 const recordParseFailure = (filePath: string, err: unknown): void => {
1777 processed++;
1778 filesErrored++;
1779 errors.push({
1780 message: err instanceof Error ? err.message : String(err),
1781 filePath,
1782 severity: 'error',
1783 code: 'parse_error',
1784 });
1785 onProgress?.({ phase: 'parsing', current: processed, total });
1786 };
1787
1788 // Commit buffered parses to the DB in file order, advancing the cursor over
1789 // contiguous completed results. Runs after each parse settles (and once more

Callers

nothing calls this directly

Calls 1

onProgressFunction · 0.85

Tested by

no test coverage detected