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 4513cac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tfexec/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,15 @@ var (
tfVersionMismatchConstraintRegexp = regexp.MustCompile(`required_version = "(.+)"|Required version: (.+)\b`)
)

<<<<<<< HEAD
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) {
=======
func parseError(err error, stderr string) error {
if _, ok := err.(*exec.ExitError); !ok {
>>>>>>> Update tfexec/errors.go
return err
}

Expand Down

0 comments on commit 4513cac

Please sign in to comment.