bpo-40246: Report a better error message for invalid string prefixes (GH-19476)
This commit is contained in:
committed by
GitHub
parent
402e1cdb13
commit
41d5b94af4
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user