Added error messages to the parser