MCPcopy
hub / github.com/vitejs/vite / collectErrorStreams

Function collectErrorStreams

playground/cli/__tests__/serve.ts:32–35  ·  view source on GitHub ↗
(name, e)

Source from the content-addressed store, hash-verified

30 process.stderr.on('data', (d) => streams[name].err.push(d.toString()))
31 }
32 const collectErrorStreams = (name, e) => {
33 e.stdout && streams[name].out.push(e.stdout)
34 e.stderr && streams[name].err.push(e.stderr)
35 }
36
37 // helper to output stream content on error
38 const printStreamsToConsole = async (name) => {

Callers 2

serveFunction · 0.70
closeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected