title: How to get error message by getFieldError in AntD Form?
body: <p>I'm validating form with Ant Design but I have a problem with <code>getFieldError()</code>. I need to get the error messages by the field name of Form.Item but it not works.</p>
  <p>Here's my code not works below:</p>
  <pre><code>...
  &lt;Form form={form} name=&quot;login_form&quot; onFinish={onFinish} scrollToFirstError&gt;
  
    &lt;Form.Item
      label=&quot;Password&quot;
      name=&quot;password&quot;
      rules={[
        {
          required: true,
          message: 'Password cannot be empty!',
        },
      ]}
      help='' // hide validating message.
    &gt;
      &lt;&gt;
       {({ getFieldError }) =&gt; console.log(getFieldError('password'))}
       //it not logging anything when submit form trigger error
  
       &lt;Input.Password placeholder=&quot;Enter your password&quot; /&gt;
      &lt;/&gt;
    &lt;/Form.Item&gt;
  
   &lt;/Form&gt;
  </code></pre>
  <p>How can I solved this problem?</p>