title: Symfony2 - Form errors (for the entire form, NOT individual fields) not displaying
body: <p>Cross-posted from the Symfony2 Google Group since there haven't been any responses to my question.</p>
  
  <p>I have the following form:</p>
  
  <pre><code>&lt;form id="contact-form" action="{{ path('_contact') }}" method="post" {{ form_enctype(form) }}&gt;
      &lt;fieldset&gt;
          &lt;legend&gt;Send us a message&lt;/legend&gt;
  
          {{ form_errors(form) }}
  
          &lt;div&gt;
              &lt;p class="label"&gt;{{ form_label(form.name) }}&lt;/p&gt;
              {{ form_widget(form.name, { 'attr' : { 'class' : 'input' } }) }}
          &lt;/div&gt;
          &lt;div&gt;
              &lt;p class="label"&gt;{{ form_label(form.email) }}&lt;/p&gt;
              {{ form_widget(form.email, { 'attr' : { 'class' : 'input' } }) }}
          &lt;/div&gt;
          &lt;div&gt;
              &lt;p class="label"&gt;{{ form_label(form.subject) }}&lt;/p&gt;
              {{ form_widget(form.subject, { 'attr' : { 'class' : 'input' } }) }}
          &lt;/div&gt;
          &lt;div&gt;
              &lt;p class="label"&gt;{{ form_label(form.message) }}&lt;/p&gt;
              {{ form_widget(form.message, { 'attr' : { 'class' : 'input', 'rows' : '8', 'placeholder' : 'Type your message here' } }) }}
          &lt;/div&gt;
          &lt;div class="hidden"&gt;
              &lt;p class="label"&gt;{{ form_label(form.honeypot) }}&lt;/p&gt;
              {{ form_widget(form.honeypot) }}
          &lt;/div&gt;
  
          {{ form_rest(form) }}
      &lt;/fieldset&gt;
  </code></pre>
  
  <p>I don't like having field errors appear directly near their fields.  I want to just have a list of all the errors above the form itself, which is why I don't have an error for each field.  I'm using a slightly modified form_errors theme:</p>
  
  <pre><code>{# src/MajorProductions/SewingDiva/SiteBundle/Resources/views/errors.html.twig #}
  {% block form_errors %}
      {% spaceless %}
          {% if errors|length &gt; 0 %}
              &lt;div class="errors"&gt;
                  &lt;ul&gt;
                      {% for error in errors %}
                          &lt;li&gt;{{
                          error.messagePluralization is null
                          ? error.messageTemplate|trans(error.messageParameters, 'validators')
                          : error.messageTemplate|transchoice(error.messagePluralization, error.messageParameters, 'validators')
                          }}&lt;/li&gt;
                      {% endfor %}
                  &lt;/ul&gt;
              &lt;/div&gt;
          {% endif %}
      {% endspaceless %}
  {% endblock form_errors %}
  </code></pre>
  
  <p>I just put the default setup in a <code>&lt;div&gt;</code> so I can style it a bit easier.</p>
  
  <p>My problem is that a list of form errors isn't displaying at all.  As in, no empty <code>&lt;div&gt;</code> in the HTML, no nothing.  If I put in the code for a field-level error, like say {{ form_errors(form.email) }}, it displays.</p>
  
  <p>I guess I could kludge it with something like:</p>
  
  <pre><code>&lt;div class="errors"&gt;
      {{ form_errors(form.name) }}
      {{ form_errors(form.email) }}
      .
      .
      .
  &lt;/div&gt;
  </code></pre>
  
  <p>But that doesn't really address the problem.</p>
  
  <p>Any ideas?</p>