bqw5189 / closure-templates

Automatically exported from code.google.com/p/closure-templates
Apache License 2.0
0 stars 0 forks source link

Method getMessage() in SoySyntaxException gives wrong line for error #76

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use this as template: 
<div>
    {$issue.description|noAutoescape
</div>
2. catch SoySyntaxException and getMessage()

What is the expected output? What do you see instead?
Expected output: Error at Line 2

Actual output: In file TemplateCard, template mySampleTemplate: Encountered 
\"\" at line 11, column 13. Was expecting one of: \"}\" ... \"}}\" ... ... ... 
... ... \"}\" ... \"}}\" ... "

What version of the product are you using? On what operating system?
2012-12-21

Original issue reported on code.google.com by joniwen...@gmail.com on 5 Sep 2014 at 2:31

GoogleCodeExporter commented 9 years ago
Closure Templates has migrated to GitHub: 
https://github.com/google/closure-templates. Please reopen this there if it's 
still an issue.

(FYI, I've been working on improving error messages in Soy. See 
https://github.com/google/closure-templates/commit/8a7de05250f662651b7b9c432fa33
8439839c2ec for example.)

Original comment by brendan....@gmail.com on 27 Feb 2015 at 12:05