Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
c4po committed Apr 2, 2024
1 parent 46bf1c6 commit c86c152
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions internal/wrapper/wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,8 @@ func RunTerraform(args []string, arch string) (int, error) {

log.Printf("version '%s' matches all constraints", matchingRelease.Version)

err = checkStateCommand(args, matchingRelease.Version)
if err != nil {
log.SetOutput(os.Stderr)
log.Fatal("error: ", err)
if err := checkStateCommand(args, matchingRelease.Version); err != nil {
return 1, err
}

executablePath, err := client.DownloadRelease(matchingRelease, runtime.GOOS, arch)
Expand Down

0 comments on commit c86c152

Please sign in to comment.