You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exceptions have a SourceLocation object, which stores the line and column numbers where the problem was encountered. This produces error messages like:
[inja.exception.render_error] (at 1:10) variable 'name' not found
When using the {% include %} and {% extends %} blocks, these numbers might correspond to a different source file. Therefore, this SourceLocation class should also store the name of the source file. Then the error message could look like:
[inja.exception.render_error] (at 1:10 in header.html) variable 'name' not found
I think this might be a significant quality-of-life improvement, but obviously is not a blocker or bug.
The text was updated successfully, but these errors were encountered:
Exceptions have a
SourceLocation
object, which stores the line and column numbers where the problem was encountered. This produces error messages like:[inja.exception.render_error] (at 1:10) variable 'name' not found
inja/include/inja/exceptions.hpp
Lines 9 to 12 in 17a59c0
When using the
{% include %}
and{% extends %}
blocks, these numbers might correspond to a different source file. Therefore, thisSourceLocation
class should also store the name of the source file. Then the error message could look like:[inja.exception.render_error] (at 1:10 in header.html) variable 'name' not found
I think this might be a significant quality-of-life improvement, but obviously is not a blocker or bug.
The text was updated successfully, but these errors were encountered: