We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b75d2fe commit 7d22a89Copy full SHA for 7d22a89
process.go
@@ -82,10 +82,10 @@ func (p *Process) RedirectStdoutTo(out io.Writer) {
82
p.cmd.Stdout = out
83
}
84
85
-// RedirectStderrTo will redirect the process' stdout to the specified
+// RedirectStderrTo will redirect the process' stderr to the specified
86
// writer. Any previous redirection will be overwritten.
87
-func (p *Process) RedirectStderrTo(out io.Writer) {
88
- p.cmd.Stderr = out
+func (p *Process) RedirectStderrTo(err io.Writer) {
+ p.cmd.Stderr = err
89
90
91
// StdinPipe returns a pipe that will be connected to the command's standard
0 commit comments