diff --git a/hclparse/parser.go b/hclparse/parser.go index c9b843d0..38c9e9ec 100644 --- a/hclparse/parser.go +++ b/hclparse/parser.go @@ -76,7 +76,7 @@ func (p *Parser) ParseHCLFile(filename string) (*hcl.File, hcl.Diagnostics) { { Severity: hcl.DiagError, Summary: "Failed to read file", - Detail: fmt.Sprintf("The configuration file %q could not be read.", filename), + Detail: fmt.Sprintf("The configuration file %#q could not be read: %s", filename, err), }, } }