Added two error messages to parseTail