title: What is the best way to display an error message thrown from an Autoform MeteorMethod Call
body: <p>I have a quick form like so:</p>
  
  <p>{{> quickForm schema=competitorSchema id="newCompetitorForm" type="method" buttonContent="Save Competitor" meteormethod="insertCompetitor" tid=tournament._id }}</p>
  
  <p>This is in a modal popup BTW.</p>
  
  <p>Now in the method code I had a defect and did not specify one of the required fields in the mongo insert operation so what happened was:</p>
  
  <ol>
  <li>Client side validation passed (cause I had populated all the required field in the form)</li>
  <li>When the actual insert occurred collection2 threw the proper error saying field X was missing.</li>
  </ol>
  
  <p>This was thrown back to me and I catch this in my onError: auto form hook like so:</p>
  
  <pre><code>onError: function(operation, error, template) {
      if(error){
          alert(error);
      }
  }
  </code></pre>
  
  <p>This could any general error - for any reason BTW.</p>
  
  <p>Alert is not what I want to use here... cause it's not very nice. Collection2 throws "Error: X is required" but I don't really want to parse out the string field name since that's sorta brittle trying to match that with a form key since it seems like X is actually the label.</p>
  
  <p>I can come up with a bunch of work arounds like populating a special div or popping a modal etc but what I really want is for auto form to handle this for me with a generic form level validation error (not a specific key). </p>
  
  <p>Does anyone know if there a nice way built into auto form to display a form level (not field specific error) to the user? I did not see this in the docs.</p>
  
  <p>I see how I can use addInvalidKeys etc for a specific field but what I want to do is use something like addInvalidKeys with no key so it displays a form level error message etc.</p>