Currently if a remote post could not be completed or an error code is returned. The user who submitted the form would not know about the error. It is good that the error is logged in the db. However, it would be nice if there is an option to display a customizable error message to the user.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

andrechun created an issue. See original summary.

  • jrockowitz committed dfb0979 on 2915653-remote-post-error-handling
    Issue #2915653: Remote post error handling
    

  • jrockowitz committed ea3b03c on 2915653-remote-post-error-handling
    Issue #2915653: Remote post error handling
    
jrockowitz’s picture

Status: Active » Needs review
FileSize
134.57 KB
jrockowitz’s picture

When reviewing the RemotePost handler I started to realize that silently logging a failed submission is just a bad idea. The attached patch displays a generic customizable submission exception message to the user.

  • jrockowitz committed 9f08c1d on 8.x-5.x
    Issue #2915653 by jrockowitz: Remote post error handling
    
jrockowitz’s picture

Status: Needs review » Fixed

I committed the patch. Please download latest dev release to review.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.