Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
pkg/terraform: annotate executeSync error
Browse files Browse the repository at this point in the history
Signed-off-by: Mateusz Gozdek <[email protected]>
  • Loading branch information
invidian committed Sep 28, 2020
1 parent 092e9f2 commit 2bedcff
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/terraform/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,11 @@ func (ex *Executor) executeSync(args ...string) ([]byte, error) {

h.stop()

return output, err
if err != nil {
return nil, fmt.Errorf("executing with arguments '%s': %w", strings.Join(args, ", "), err)
}

return output, nil
}

// Plan runs 'terraform plan'.
Expand Down

0 comments on commit 2bedcff

Please sign in to comment.