google / google/closure-templates
Return compilation errors from compileToTofu
Open
- Dominant language
- Java
- Stars
- 700
- Forks
- 199
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 26
Description
When developing templates, it would be helpful to get the template, filename, line number, and error message for any compilation errors. That allows me to show the detailed error message along with the line of source code in context to the developer. I do that today by parsing the SoySyntaxException's message, after extracting the original exception from the suppressed frames. Luke suggested that this use case could be better supported.
Contributor guide
Assessment
This issue has not been assessed yet.