Skip to content

Commit 9d2037e

Browse files
sobolevnvstinner
andauthored
Update Python/ast.c
Co-authored-by: Victor Stinner <[email protected]>
1 parent fd105a8 commit 9d2037e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Python/ast.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ static int validate_typeparam(type_param_ty);
4343
if (node->lineno < -1 || node->end_lineno < -1 || \
4444
node->col_offset < -1 || node->end_col_offset < -1) { \
4545
PyErr_Format(PyExc_ValueError, \
46-
"AST node has invalid location (%d, %d, %d, %d)", \
46+
"AST node has invalid location: lineno=%d, end_lineno=%d, " \
47+
"col_offset=%d, end_col_offset=%d", \
4748
node->lineno, node->end_lineno, \
4849
node->col_offset, node->end_col_offset); \
4950
return 0; \

0 commit comments

Comments
 (0)