MCPcopy Create free account
hub / github.com/Shinplex/rever / errorStreamGenerator

Function errorStreamGenerator

retool.ts:334–337  ·  view source on GitHub ↗
(msg: string, code = 503)

Source from the content-addressed store, hash-verified

332 yield `data: ${done}\n\ndata: [DONE]\n\n`;
333}
334async function* errorStreamGenerator(msg: string, code = 503) {
335 yield `data: ${JSON.stringify({ error: { message: msg, code } })}\n\n`;
336 yield "data: [DONE]\n\n";
337}
338
339// ----------------------------------------------------------------------------
340// Main request handler

Callers 1

handleRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected