Improved error messages during parsing.