In Twig template I check if a field has an error like this:
{% if form.points.get(\'errors\') is not empty %}
Is there any method like:
better way I found, is to use this kind of code
{% if not form.vars.valid %} {{ form_errors(form) }} {% endif %}