EOF in source is a SyntaxError, not an EOFError.
This commit is contained in:
@@ -192,7 +192,7 @@ err_input(err)
|
||||
err_nomem();
|
||||
break;
|
||||
case E_EOF:
|
||||
err_setstr(EOFError, "unexpected EOF while parsing");
|
||||
err_setstr(SyntaxError, "unexpected EOF while parsing");
|
||||
break;
|
||||
default:
|
||||
err_setstr(SystemError, "unknown parsing error");
|
||||
|
||||
Reference in New Issue
Block a user