Skip to content

Commit d34c436

Browse files
authored
[BUGFIX] Consider config.contentObjectExceptionHandler.ignoreCodes (#115)
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
1 parent b917c6f commit d34c436

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Classes/Content/ProductionExceptionHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ public function handle(
2525
throw $exception;
2626
}
2727

28-
$eventId = GeneralUtility::makeInstance(Client::class)->captureException($exception);
2928
$errorMessage = parent::handle($exception, $contentObject, $contentObjectConfiguration);
29+
$eventId = GeneralUtility::makeInstance(Client::class)->captureException($exception);
3030

3131
if (ConfigurationService::showEventId()) {
3232
return sprintf('%s Event: %s', $errorMessage, $eventId);

0 commit comments

Comments
 (0)