added error message for parser
added error message for parser