Skip to content

Commit be8f9e7

Browse files
committed
Provide more info on error
1 parent f5b5ff5 commit be8f9e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/tools/extensions/grammar_snippet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def make_production(
150150
case 'text':
151151
production_node += nodes.Text(content)
152152
case _:
153-
raise ValueError('unhandled match')
153+
raise ValueError(f'unhandled match: {re_group_name!r}')
154154
return production_node
155155

156156
def make_name_target(

0 commit comments

Comments
 (0)