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

Method StderrPipe

pkg/genconn/ssh-impl.go:132–147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

StderrPipeMethod · 0.65

Tested by

no test coverage detected