We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ResponseException
InsertTagsListener
1 parent 02243df commit 3ae95a6Copy full SHA for 3ae95a6
src/CoreBundle/EventListener/InsertTagsListener.php
@@ -24,6 +24,7 @@
24
25
namespace MetaModels\CoreBundle\EventListener;
26
27
+use Contao\CoreBundle\Exception\ResponseException;
28
use Contao\StringUtil;
29
use Contao\Input;
30
use Doctrine\DBAL\Connection;
@@ -176,6 +177,10 @@ public function __invoke(string $insertTag): bool|int|string
176
177
default:
178
}
179
} catch (\Exception $exc) {
180
+ if ($exc instanceof ResponseException) {
181
+ throw $exc;
182
+ }
183
+
184
$this->logger?->error(
185
'Error by replace tags: ' . $exc->getMessage() . ' | ' . __CLASS__ . ' | ' . __FUNCTION__
186
);
0 commit comments