Skip to content

Commit

Permalink
Merge pull request #554 from Praqma/add-hook-stdout-on-error
Browse files Browse the repository at this point in the history
feat: commands should optionally log stdout on failures.
  • Loading branch information
luisdavim authored Nov 24, 2020
2 parents 666a31f + 75726a4 commit 21c0a08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/app/plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ func execOne(cmd Command, targetRelease *release) error {
log.Notice(cmd.Description)
result := cmd.Exec()
if result.code != 0 {
log.Verbose(result.output)
errorMsg := result.errors
if !flags.verbose {
errorMsg = strings.Split(result.errors, "---")[0]
Expand Down

0 comments on commit 21c0a08

Please sign in to comment.