From 65a1cfa798f561c200549ab9a53ba9864ed171fc Mon Sep 17 00:00:00 2001 From: Benni Mack Date: Sun, 13 Apr 2025 00:42:39 +0200 Subject: [PATCH] [TASK] Improve error message When a versioned record cannot be found, the DB table and the UID of the live record is now added to the message of the exception. --- .../Core/Functional/Framework/DataHandling/ActionService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Core/Functional/Framework/DataHandling/ActionService.php b/Classes/Core/Functional/Framework/DataHandling/ActionService.php index e376435a..bb8fc716 100644 --- a/Classes/Core/Functional/Framework/DataHandling/ActionService.php +++ b/Classes/Core/Functional/Framework/DataHandling/ActionService.php @@ -428,7 +428,7 @@ public function publishRecords(array $tableLiveUids, bool $throwException = true $versionedUid = $this->getVersionedId($tableName, (int)$liveUid); if (empty($versionedUid)) { if ($throwException) { - throw new Exception('Versioned UID could not be determined', 1476049592); + throw new Exception('Versioned UID of ' . $tableName . ':' . $liveUid . ' could not be determined', 1476049592); } continue; }