From 46bf1c6b028513aff210b9a961d99a2805bd51ea Mon Sep 17 00:00:00 2001 From: Max Cai Date: Tue, 2 Apr 2024 09:46:09 -0400 Subject: [PATCH] show errs --- internal/wrapper/wrapper.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) }