From 93fb31f28b86c36b99587ba5b042ed5c440c6365 Mon Sep 17 00:00:00 2001 From: Radek Simko Date: Mon, 28 Jan 2019 10:32:56 +0000 Subject: [PATCH] hcl/hclsyntax: Clarify character in error message Per PR feedback https://github.com/hashicorp/hcl2/pull/33#discussion_r251081391 --- hcl/hclsyntax/token.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hcl/hclsyntax/token.go b/hcl/hclsyntax/token.go index c9d7442..67be099 100644 --- a/hcl/hclsyntax/token.go +++ b/hcl/hclsyntax/token.go @@ -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)