Skip to content

Commit

Permalink
fix/gitflow better error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
hminaee-tc committed Jul 4, 2024
1 parent 7e7efd1 commit fa0af06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ repos:
# Checkov also supports the creation and contribution of custom policies.
# -----------------------------
- repo: https://github.com/bridgecrewio/checkov.git
rev: 3.2.171
rev: 3.2.174
hooks:
- id: checkov
# -----------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ def main():
replacements = json.load(f)
except FileNotFoundError:
logging.error(f"Error: {args.config} file not found.")
logging.error(f"Error: If your repo contains a {args.config}.template file - update the values inside
the template file and then rename {args.config}.template to {args.config}")
logging.error(f'''Error: If your repo contains a {args.config}.template file -
update the values inside the template file and then rename {args.config}.template to {args.config}''')
sys.exit(1)
except json.JSONDecodeError:
logging.error(f"Error: {args.config} is not a valid JSON file.")
Expand Down

0 comments on commit fa0af06

Please sign in to comment.