From cc69f493c07c5055a2b847de5510f0e44a434332 Mon Sep 17 00:00:00 2001 From: Paul Tyng Date: Fri, 11 Sep 2020 15:49:29 -0400 Subject: [PATCH] Update tfexec/errors.go --- tfexec/errors.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tfexec/errors.go b/tfexec/errors.go index 26e38ed0..010b3887 100644 --- a/tfexec/errors.go +++ b/tfexec/errors.go @@ -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 }