Previously, we would print the error name and location, but this isn't as
helpful as we can be. Let's add a hint that shows the location where we
encountered the parse error.
Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Event Timeline
Comment Actions
We should add a test about templates that contain newlines - it's probably Hard, so feel free to just not be helpful with newline-containing templates for now?
tests/test-command-template.t | ||
---|---|---|
2770 | Nit: could we make this be "^ here" instead of just the caret? |
mercurial/templater.py | ||
---|---|---|
147 | Perhaps this pos + 1 is the reason why the error location is sometimes wrong. |
Perhaps this pos + 1 is the reason why the error location is sometimes wrong.
I'll send a follow up.