fix Issue 13609 - better error message for missing '}'
Merge pull request #4065 from 9rnsr/fix13609

Issue 13609 - better error message for missing '}'