Skip to content

Commit

Permalink
fix: capture timing information for erroneous commands (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
zimeg authored Feb 3, 2024
1 parent 8b7f5de commit 76276a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- Output outputs in an unbuffered manner as output happens
- Capture timing information for erroneous commands

### Maintenance

Expand Down
2 changes: 1 addition & 1 deletion pkg/times/stopwatch.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (bw *bufferWriter) Write(p []byte) (int, error) {
func timerCommand(command []string, stderr bufferWriter) *exec.Cmd {
timeShell := []string{
strings.Join(command, " "),
"&&",
";",
"1>&2",
"echo",
stderr.bounds,
Expand Down

0 comments on commit 76276a8

Please sign in to comment.