hcl/hclsyntax: Clarify character in error message
Per PR feedback https://github.com/hashicorp/hcl2/pull/33#discussion_r251081391
This commit is contained in:
parent
6d20f625a6
commit
93fb31f28b
@ -244,7 +244,7 @@ func checkInvalidTokens(tokens Tokens) hcl.Diagnostics {
|
|||||||
newDiag := &hcl.Diagnostic{
|
newDiag := &hcl.Diagnostic{
|
||||||
Severity: hcl.DiagError,
|
Severity: hcl.DiagError,
|
||||||
Summary: "Invalid character",
|
Summary: "Invalid character",
|
||||||
Detail: "The ' character is not valid. Use double quotes (\") to enclose strings.",
|
Detail: "Single quotes are not valid. Use double quotes (\") to enclose strings.",
|
||||||
Subject: &tok.Range,
|
Subject: &tok.Range,
|
||||||
}
|
}
|
||||||
diags = append(diags, newDiag)
|
diags = append(diags, newDiag)
|
||||||
|
Loading…
Reference in New Issue
Block a user