Improve form loading error handling

Created on 24 January 2024, over 1 year ago

Problem/Motivation

When the form can't be loaded, the message logged on drupal log misses the exception message details. Also, "Form failed to load" message is not suitable for some customers who are concerned of lead income loses.

Steps to reproduce

Proposed resolution

  • Also log the exception message
  • Allow users to configure a custom error message when forms can't be loaded into a new module's settings form

Remaining tasks

I attach a patch with initial code changes:

  • Let the configuration form field "Error message when forms fails to load" be translatable
  • Load the configuration value for the current language and print it in case of error

User interface changes

New configuration form.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain rcodina Barcelona

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024