Skip to content

Commit

Permalink
style: Improve error message on get version
Browse files Browse the repository at this point in the history
  • Loading branch information
lakkeger committed Jan 31, 2024
1 parent 1b638b5 commit 53333be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/tflocal
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ terraform {
access_key = "test"
secret_key = "test"
<endpoints>
<endpoints>
skip_credentials_validation = true
skip_metadata_api_check = true
}
Expand Down Expand Up @@ -428,8 +428,8 @@ def main():
get_tf_version(env)
if not TF_VERSION:
raise ValueError
except (FileNotFoundError, ValueError):
print("Terraform not found.")
except (FileNotFoundError, ValueError) as e:
print(f"Unable to determine version. See error message for details: {e}")
exit(1)

# create TF provider config file
Expand Down

0 comments on commit 53333be

Please sign in to comment.