From d5076dfac980968654cf248dcf5a112b90a13c3c Mon Sep 17 00:00:00 2001 From: Oliver Bartsch <bo@cedev.de> Date: Thu, 5 Oct 2023 11:52:36 +0200 Subject: [PATCH] [TASK] Improve exception message for invalid `internal_type` The exception message now contains the invalid value as well as the only valid values. Resolves: #102041 Releases: 11.5 Change-Id: I8ae55d2a56e1a9c16b27d4ed66d15516f716b6ac Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/81324 Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: core-ci <typo3@b13.com> Tested-by: Oliver Bartsch <bo@cedev.de> Reviewed-by: Oliver Bartsch <bo@cedev.de> Reviewed-by: Benni Mack <benni@typo3.org> Tested-by: Benni Mack <benni@typo3.org> --- .../sysext/backend/Classes/Form/FormDataProvider/TcaGroup.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typo3/sysext/backend/Classes/Form/FormDataProvider/TcaGroup.php b/typo3/sysext/backend/Classes/Form/FormDataProvider/TcaGroup.php index f7b2229f6cbf..fb7b20403473 100644 --- a/typo3/sysext/backend/Classes/Form/FormDataProvider/TcaGroup.php +++ b/typo3/sysext/backend/Classes/Form/FormDataProvider/TcaGroup.php @@ -148,8 +148,8 @@ class TcaGroup implements FormDataProviderInterface } } else { throw new \UnexpectedValueException( - 'Invalid TCA internal_type of field "' . $fieldName . '" in table ' . $result['tableName'] - . ': Must not be set, or set to "folder".', + 'Invalid TCA internal_type "' . $internalType . '" for field "' . $fieldName + . '" of table "' . $result['tableName'] . '". Valid values are "db" (default) and "folder".', 1438780511 ); } -- GitLab