The error should give the name of the invalid rule to help with debugging.