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

fmt: print parse errors on error #12870

Merged
merged 1 commit into from
Mar 7, 2024
Merged

Commits on Mar 7, 2024

  1. fmt: print parse errors on error

    The fmt command reformats HCL2 templates, provided it can parse the file
    and reformat its contents according to the standards set by the HCL
    library's formatters.
    
    However, if the file is malformed for some reason, the command will fail
    with a parse error, but while the parse error message is shown, the
    actual errors in the template(s) are not forwarded, making it hard for
    users to understand what went wrong with the contents of the file
    they're trying to format.
    
    In order to be more helpful with those errors, we now forward those
    parsing errors to the UI.
    lbajolet-hashicorp committed Mar 7, 2024
    Configuration menu
    Copy the full SHA
    b366ff2 View commit details
    Browse the repository at this point in the history