Skip to content

Commit

Permalink
Add more detailed output for github-wiki task (palantir#206)
Browse files Browse the repository at this point in the history
Print output of git command in addition to error in error output.
  • Loading branch information
nmiyake authored Aug 25, 2017
1 parent ec1bd5e commit 1182e4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/githubwiki/githubwiki.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (g git) exec(args ...string) (string, error) {
cmd.Dir = string(g)
output, err := cmd.CombinedOutput()
if err != nil {
return "", fmt.Errorf("%v failed: %v", cmd.Args, err)
return "", fmt.Errorf("%v failed\nError: %v\nOutput: %s", cmd.Args, err, string(output))
}
return strings.TrimSpace(string(output)), nil
}
Expand Down

0 comments on commit 1182e4e

Please sign in to comment.