Merge pull request #8267 from hashicorp/do_8266

improve error message
This commit is contained in:
Megan Marsh 2019-10-23 13:00:20 -07:00 committed by GitHub
commit 8d8bd3f891
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -371,7 +371,7 @@ func Parse(r io.Reader) (*Template, error) {
if unused[0] == '_' {
commentVal, ok := unusedMap[unused].(string)
if !ok {
return nil, fmt.Errorf("Failed to cast root level comment value to string")
return nil, fmt.Errorf("Failed to cast root level comment value in comment \"%s\" to string.", unused)
}
comment := map[string]string{