We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d548f7 commit 0a90671Copy full SHA for 0a90671
src/sphinx_codeautolink/extension/block.py
@@ -258,6 +258,12 @@ def parse_source( # noqa: C901
258
msg = self._parsing_error_msg(e, language, show_source)
259
logger.warning(msg, type=warn_type, subtype="parse_block", location=node)
260
return
261
+ except Exception as e:
262
+ show_source = self._format_source_for_error(
263
+ self.global_preface, self.concat_sources, prefaces, transform.source
264
+ )
265
+ msg = self._parsing_error_msg(e, language, show_source)
266
+ raise type(e)(msg) from e
267
268
if prefaces or self.concat_sources or self.global_preface:
269
concat_lens = [s.count("\n") + 1 for s in self.concat_sources]
0 commit comments