diff --git a/core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php b/core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php index 35d6e85..aa033ba 100644 --- a/core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php +++ b/core/lib/Drupal/Core/Form/EventSubscriber/FormAjaxSubscriber.php @@ -11,7 +11,6 @@ use Drupal\Core\Form\FormAjaxResponseBuilderInterface; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent; -use Symfony\Component\HttpKernel\Exception\HttpException; use Symfony\Component\HttpKernel\KernelEvents; /** @@ -60,7 +59,7 @@ public function onException(GetResponseForExceptionEvent $event) { $response->headers->set('X-Status-Code', 200); $event->setResponse($response); } - catch (HttpException $e) { + catch (\Exception $e) { // Otherwise, replace the existing exception with the new one. $event->setException($e); }