summaryrefslogtreecommitdiff
path: root/doc/build/unreleased/codeerr.rst
diff options
context:
space:
mode:
Diffstat (limited to 'doc/build/unreleased/codeerr.rst')
-rw-r--r--doc/build/unreleased/codeerr.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/build/unreleased/codeerr.rst b/doc/build/unreleased/codeerr.rst
new file mode 100644
index 0000000..2497896
--- /dev/null
+++ b/doc/build/unreleased/codeerr.rst
@@ -0,0 +1,10 @@
+.. change::
+ :tags: bug, exceptions
+
+ Improved the line-number tracking for source lines inside of Python ``<%
+ ... %>`` blocks, such that text- and HTML-formatted exception traces such
+ as that of :func:`.html_error_template` now report the correct source line
+ inside the block, rather than the first line of the block itself.
+ Exceptions in ``<%! ... %>`` blocks which get raised while loading the
+ module are still not reported correctly, as these are handled before the
+ Mako code is generated. Pull request courtesy Martin von Gagern.