MCPcopy
hub / github.com/colbymchenry/codegraph / recordParseFailure

Method recordParseFailure

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

Source from the content-addressed store, hash-verified

1375 };
1376
1377 const recordParseFailure = (filePath: string, err: unknown): void => {
1378 processed++;
1379 filesErrored++;
1380 errors.push({
1381 message: err instanceof Error ? err.message : String(err),
1382 filePath,
1383 severity: 'error',
1384 code: 'parse_error',
1385 });
1386 onProgress?.({ phase: 'parsing', current: processed, total });
1387 };
1388
1389 // Commit buffered parses to the DB in file order, advancing the cursor over
1390 // 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