mirror of
https://github.com/python/cpython.git
synced 2025-09-01 06:28:36 +00:00
Translate E_INDENT to the clearest error message I can think of.
This commit is contained in:
parent
bba92ca555
commit
560e8adef7
1 changed files with 3 additions and 0 deletions
|
@ -997,6 +997,9 @@ err_input(err)
|
|||
case E_EOF:
|
||||
msg = "unexpected EOF while parsing";
|
||||
break;
|
||||
case E_INDENT:
|
||||
msg = "inconsistent use of tabs and spaces in indentation";
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr, "error=%d\n", err->error);
|
||||
msg = "unknown parsing error";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue