From 86ca186ce210246120d4d6f801893c8971a1d09b Mon Sep 17 00:00:00 2001 From: Achim Fritz Date: Mon, 28 Apr 2025 08:45:11 +0200 Subject: [PATCH] [BUGFIX] Content Production Exception Handler do not capture unhandled TYPO3 Content Production Handler Exception e.g. setting config.contentObjectExceptionHandler.ignoreCodes in TS tells TYPO3 Content Production Exception Handler not to handle Exceptions with configured Codes, but throw the Exception. In this case we do not want to capture the Exception in sentry --- Classes/Content/ProductionExceptionHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Content/ProductionExceptionHandler.php b/Classes/Content/ProductionExceptionHandler.php index 3f6f0d0..387c2e5 100644 --- a/Classes/Content/ProductionExceptionHandler.php +++ b/Classes/Content/ProductionExceptionHandler.php @@ -25,8 +25,8 @@ public function handle( throw $exception; } - $eventId = GeneralUtility::makeInstance(Client::class)->captureException($exception); $errorMessage = parent::handle($exception, $contentObject, $contentObjectConfiguration); + $eventId = GeneralUtility::makeInstance(Client::class)->captureException($exception); if (ConfigurationService::showEventId()) { return sprintf('%s Event: %s', $errorMessage, $eventId);