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