MCPcopy Create free account
hub / github.com/CodeForBreakfast/eventsourcing / formatErrorLines

Function formatErrorLines

scripts/validate-markdown-examples.ts:457–462  ·  view source on GitHub ↗
(errorLines: readonly string[])

Source from the content-addressed store, hash-verified

455 Effect.andThen((fs) => fs.remove(tempDir, { recursive: true })),
456 Effect.mapError(
457 () => new DocsValidationError({ message: `Failed to cleanup temp dir ${tempDir}` })
458 ),
459 Effect.orElseSucceed(() => undefined)
460 );
461
462const formatErrorLine = (line: string): Effect.Effect<void, never, never> =>
463 !line.includes('example-') || line.includes('error TS')
464 ? Console.error(` ${line}`)
465 : Effect.void;

Callers 1

formatErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected