Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/CoreBundle/EventListener/InsertTagsListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

namespace MetaModels\CoreBundle\EventListener;

use Contao\CoreBundle\Exception\ResponseException;
use Contao\StringUtil;
use Contao\Input;
use Doctrine\DBAL\Connection;
Expand Down Expand Up @@ -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__
);
Expand Down
Loading