Skip to content

Commit

Permalink
Revert "fix: show stdout/err on error"
Browse files Browse the repository at this point in the history
This reverts commit 75bfb79.
  • Loading branch information
xtuc committed Apr 14, 2022
1 parent 5a157cb commit 0302453
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions compress/algorithm.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@ func runAlgorithm(ctx context.Context, alg string, args ...string) []byte {

log.Printf("algorithm: run %s\n", cmd)
err := cmd.Run()
if err != nil {
log.Println(stdOut.String())
log.Println(stdErr.String())
util.Check(err)
}
// log.Println(string(stdOut.Bytes()))
// log.Println(string(stdErr.Bytes()))
util.Check(err)

if stdErr.Len() > 0 {
panic(fmt.Sprintf("%s failed: %s", alg, stdErr.String()))
Expand Down

0 comments on commit 0302453

Please sign in to comment.