We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3f5e4ef + cb2ac4c commit f6a8d69Copy full SHA for f6a8d69
1 file changed
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