diff --git a/src/CoreBundle/EventListener/InsertTagsListener.php b/src/CoreBundle/EventListener/InsertTagsListener.php index 17934feb2..e7c2523ba 100644 --- a/src/CoreBundle/EventListener/InsertTagsListener.php +++ b/src/CoreBundle/EventListener/InsertTagsListener.php @@ -24,6 +24,7 @@ namespace MetaModels\CoreBundle\EventListener; +use Contao\CoreBundle\Exception\ResponseException; use Contao\StringUtil; use Contao\Input; use Doctrine\DBAL\Connection; @@ -176,6 +177,10 @@ public function __invoke(string $insertTag): bool|int|string default: } } catch (\Exception $exc) { + if ($exc instanceof ResponseException) { + throw $exc; + } + $this->logger?->error( 'Error by replace tags: ' . $exc->getMessage() . ' | ' . __CLASS__ . ' | ' . __FUNCTION__ );