πΊπΈUnited States CoffeyMachine
IMO, AJAX error messaging could use a few improvements:
- Echoing s_leu, having the option to put the
xmlhttp.responseText
would be immensely helpful. - AJAX callbacks need a way to be able to act on PHP exceptions. Consider when Guzzle returns an API error response. The go-to behavior is to throw an exception and log it to the console. AJAX callbacks need a way to translate these error responses into human-readable messages. Perhaps we should look at the
ExceptionLoggingSubscriber
class to see if it's feasible to add a hook or some other means of giving the module developer the ability to act on an exception thrown by another module.
πΊπΈUnited States CoffeyMachine
Thanks for hosting, looking forward to diving in.