Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Improve readability of terraform errors #362

Merged
merged 1 commit into from
Nov 28, 2023
Merged

fix: Improve readability of terraform errors #362

merged 1 commit into from
Nov 28, 2023

Conversation

dantefromhell
Copy link
Contributor

When terraform errors output the affected line-of-code the output is highly unreadable as `config.tf.json' is a one-line JSON file.

Since there seems to be no nix expression for pretty printing JSON, this PR uses jq on the command line instead.

The result is that terraform syntax errors output the single affected line-of-code.

When terraform errors output the affected line-of-code the output is highly unreadable as `config.tf.json' is a one-line JSON file.

Since there seems to be no nix expression for pretty printing JSON, this PR uses `jq` on the command line instead.

The result is that terraform syntax errors output the single affected line-of-code.
@blaggacao blaggacao merged commit 9811737 into divnix:main Nov 28, 2023
@blaggacao
Copy link
Collaborator

Cool!! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants