File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -213,7 +213,8 @@ def _process_rich_text_node(child: nodes.Node) -> Text:
213213 are handled by registered functions.
214214 """
215215 unsupported_child_type_msg = (
216- f"Unsupported child type: { type (child ).__name__ } ."
216+ f"Unsupported node type within text: { type (child ).__name__ } on line "
217+ f"{ child .parent .line } in { child .parent .source } ."
217218 )
218219 # We use ``TRY004`` here because we want to raise a
219220 # ``ValueError`` if the child type is unsupported, not a
Original file line number Diff line number Diff line change @@ -2771,7 +2771,10 @@ def footnote_role(
27712771
27722772 app.add_role('footnote', footnote_role)
27732773 """
2774- expected_message = r"^Unsupported child type: footnote_reference\.$"
2774+ expected_message = (
2775+ r"^Unsupported node type within text: footnote_reference on line 1 in "
2776+ rf"{ re .escape (pattern = str (object = tmp_path / 'src' / 'index.rst' ))} \.$"
2777+ )
27752778 with pytest .raises (expected_exception = ValueError , match = expected_message ):
27762779 _assert_rst_converts_to_notion_objects (
27772780 rst_content = rst_content ,
You can’t perform that action at this time.
0 commit comments