Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement basic span error reporting #118

Merged
merged 3 commits into from Sep 17, 2022
Merged

Conversation

mitsuhiko
Copy link
Owner

Some operations now report the spans of where the error happened.

Example error in debug format:

Error {
    kind: TooManyArguments,
    name: "err_bad_test_arguments.txt",
    line: 2,
}

---------------------------- Template Source -----------------------------
   1 | {% for item in seq %}
   2 >   {% if item is even(42) %}
     i                 ^^^^^^^^ too many arguments
   3 |     {{ item }}
   4 |   {% endif %}
   5 | {% endfor %}
--------------------------------------------------------------------------

@mitsuhiko mitsuhiko merged commit f9bfb4f into main Sep 17, 2022
@mitsuhiko mitsuhiko deleted the feature/span-reporting branch September 17, 2022 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant