Skip to content

Commit

Permalink
Merge pull request vmware-archive#4 from leslie-qiwa/dump-more-logs
Browse files Browse the repository at this point in the history
add stdout as part of error message
  • Loading branch information
leslie-qiwa authored Feb 29, 2024
2 parents e858ec1 + 2a67e49 commit 14bc270
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tool.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ func (t *tool) run(args ...string) (string, error) {

err := cmd.Run()
if err != nil {
return "", fmt.Errorf("run %s %s: %s (%s)",
cmd.Path, strings.Join(cmd.Args, " "), stderr.String(), err)
return "", fmt.Errorf("run %s %s: stdout(%s), stderr(%s), err(%s)",
cmd.Path, strings.Join(cmd.Args, " "), stdout.String(), stderr.String(), err)
}

return stdout.String(), err
return stdout.String(), nil
}

func requestToBytes(r *Request) []byte {
Expand Down

0 comments on commit 14bc270

Please sign in to comment.