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
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
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 | ||
---|---|---|
148 | 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.