§1. Error concerning the person renders a marriage invalid.
§2. Error concerning a quality of the person does not render a marriage invalid even if it is the cause for the contract, unless this quality is directly and principally intended.
Source: Code of Canon Law (Vatican.va)