diff --git a/internal/wrapper/wrapper.go b/internal/wrapper/wrapper.go index 25cfae2..dd3b77d 100644 --- a/internal/wrapper/wrapper.go +++ b/internal/wrapper/wrapper.go @@ -53,7 +53,8 @@ func RunTerraform(args []string, arch string) (int, error) { log.Printf("version '%s' matches all constraints", matchingRelease.Version) - if checkStateCommand(args, matchingRelease.Version) != nil { + err = checkStateCommand(args, matchingRelease.Version) + if err != nil { log.SetOutput(os.Stderr) log.Fatal("error: ", err) }