MCPcopy Index your code
hub / github.com/simstudioai/sim / createParseFailure

Function createParseFailure

apps/sim/lib/copilot/request/go/parser.ts:8–11  ·  view source on GitHub ↗
(message: string, preview: string)

Source from the content-addressed store, hash-verified

6export class FatalSseEventError extends Error {}
7
8function createParseFailure(message: string, preview: string): FatalSseEventError {
9 logger.error(message, { preview })
10 return new FatalSseEventError(message)
11}
12
13function normalizeSseLine(line: string): string {
14 return line.endsWith('\r') ? line.slice(0, -1) : line

Callers 1

processSSEStreamFunction · 0.85

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected