Improved parse error reporting.