hcl/hclsyntax: Clarify character in error message

Per PR feedback https://github.com/hashicorp/hcl2/pull/33#discussion_r251081391
This commit is contained in:
Radek Simko 2019-01-28 10:32:56 +00:00 committed by GitHub
parent 6d20f625a6
commit 93fb31f28b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ func checkInvalidTokens(tokens Tokens) hcl.Diagnostics {
newDiag := &hcl.Diagnostic{
Severity: hcl.DiagError,
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,
}
diags = append(diags, newDiag)