MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / StderrPipe

Method StderrPipe

pkg/genconn/wsl-impl.go:133–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131}
132
133func (w *WSLProcessController) StderrPipe() (io.Reader, error) {
134 w.lock.Lock()
135 defer w.lock.Unlock()
136
137 if w.started {
138 return nil, fmt.Errorf("command already started")
139 }
140 if w.stderrPiped {
141 return nil, fmt.Errorf("stderr already piped")
142 }
143
144 w.stderrPiped = true
145 stderr, err := w.cmd.StderrPipe()
146 if err != nil {
147 return nil, err
148 }
149 return stderr, nil
150}

Callers

nothing calls this directly

Calls 1

StderrPipeMethod · 0.65

Tested by

no test coverage detected