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

Function collectErrorStreams

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

Source from the content-addressed store, hash-verified

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

Callers 2

serveFunction · 0.70
closeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected