mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +00:00
bpo-40246: Report a better error message for invalid string prefixes (GH-19476)
This commit is contained in:
parent
402e1cdb13
commit
41d5b94af4
5 changed files with 10 additions and 1 deletions
|
@ -1574,6 +1574,9 @@ err_input(perrdetail *err)
|
|||
case E_BADSINGLE:
|
||||
msg = "multiple statements found while compiling a single statement";
|
||||
break;
|
||||
case E_BADPREFIX:
|
||||
msg = "invalid string prefix";
|
||||
break;
|
||||
default:
|
||||
fprintf(stderr, "error=%d\n", err->error);
|
||||
msg = "unknown parsing error";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue