From 157a4da457eac3142e9d042a6eda999cd7bd2e3e Mon Sep 17 00:00:00 2001 From: Moritz Ngo Date: Thu, 27 Nov 2025 10:33:27 +0100 Subject: [PATCH] [BUGFIX] Only display EventId if there's one --- 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 387c2e5..b5986b6 100644 --- a/Classes/Content/ProductionExceptionHandler.php +++ b/Classes/Content/ProductionExceptionHandler.php @@ -28,7 +28,7 @@ public function handle( $errorMessage = parent::handle($exception, $contentObject, $contentObjectConfiguration); $eventId = GeneralUtility::makeInstance(Client::class)->captureException($exception); - if (ConfigurationService::showEventId()) { + if (ConfigurationService::showEventId() && ! empty($eventId)) { return sprintf('%s Event: %s', $errorMessage, $eventId); } return $errorMessage;