Skip to content

Commit

Permalink
Update tfexec/errors.go
Browse files Browse the repository at this point in the history
  • Loading branch information
paultyng authored and appilon committed Sep 16, 2020
1 parent 3649e43 commit cc69f49
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tfexec/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ var (
)

func (tf *Terraform) parseError(err error, stderr string) error {
// if not an ExitError, just return it, do not try to parse
var ee *exec.ExitError
if !errors.As(err, &ee) {
ee, ok := err.(*exec.ExitError)
if !ok {
return err
}

Expand Down

0 comments on commit cc69f49

Please sign in to comment.