give more detail in exception message for a bad form AJAX callback in buildResponse()

Created on 25 February 2019, over 5 years ago
Updated 2 November 2023, 8 months ago

FormAjaxResponseBuilder::buildResponse() throws this exception if the AJAX callback has a problem:

      throw new HttpException(500, 'The specified #ajax callback is empty or not callable.');

That could do to give more detail, as there can be several AJAX elements in a single form.

Proposed resolution

The exception message should:

- give the address of the element causing the problem
- distinguish between the two separate cases of 'empty' and 'not callable'

📌 Task
Status

Needs work

Version

11.0 🔥

Component
Form 

Last updated less than a minute ago

Created by

🇬🇧United Kingdom joachim

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024