()
| 130 | } |
| 131 | |
| 132 | func (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 | } |
nothing calls this directly
no test coverage detected