Commit 5677b0d
committed
Pipeline: prefer to report non-pipe errors to the caller
If a later stage of the pipeline fails, it is often the case that
earlier stages fail with some sort of pipe-related error (because
their `stdout` pipe gets closed). Those pipe errors are usually not
very helpful in figuring out the underlying problem. So if there are
any non-pipe errors, report the earliest one of those. If there are
only pipe errors, report the latest one of those.1 parent 1458ae5 commit 5677b0d
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
189 | 195 | | |
190 | 196 | | |
191 | 197 | | |
192 | | - | |
193 | | - | |
| 198 | + | |
194 | 199 | | |
195 | 200 | | |
196 | 201 | | |
| |||
0 commit comments