Skip to content
Snippets Groups Projects
Commit 7e259fd6 authored by John Arundel's avatar John Arundel
Browse files

Report ExecForEach command exit errors to the pipe

parent dbe8ad27
Branches
Tags v0.21.3
No related merge requests found
......@@ -433,7 +433,11 @@ func (p *Pipe) ExecForEach(cmdLine string) *Pipe {
fmt.Fprintln(w, err)
continue
}
cmd.Wait()
err = cmd.Wait()
if err != nil {
fmt.Fprintln(w, err)
continue
}
}
return scanner.Err()
})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment