fix parsing error message
raise EINVAL when an invalid .frm file is encountered