google / google/closure-templates

Return compilation errors from compileToTofu

Open
#53 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.