mirror of https://github.com/hashicorp/packer
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.update/integration-script-commands
parent
e3c8d9b929
commit
ea1e798c47
@ -0,0 +1,14 @@
|
||||
variable "region" {
|
||||
type =string
|
||||
}
|
||||
|
||||
invalid
|
||||
|
||||
source "amazon-ebs" "example" {
|
||||
region = var.region
|
||||
}
|
||||
|
||||
build {
|
||||
sources = ["source.amazon-ebs.example"]
|
||||
}
|
||||
|
||||
Loading…
Reference in new issue