Skip to content

Commit

Permalink
fix: error message (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
knqyf263 authored Jan 31, 2020
1 parent b6440cb commit f2a3428
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,9 @@ func runBenchmark(cmdStr string, args []string) (parse.Set, error) {
if strings.HasSuffix(strings.TrimSpace(stderr.String()), "no packages to test") {
return parse.Set{}, nil
}
log.Println(string(out))
log.Println(stderr.String())
return nil, xerrors.Errorf("failed to run '%s %s' command: %w", cmd, strings.Join(args, " "), err)
return nil, xerrors.Errorf("failed to run '%s' command: %w", cmd, err)
}

b := bytes.NewBuffer(out)
Expand Down

0 comments on commit f2a3428

Please sign in to comment.