Skip to content
Snippets Groups Projects
Commit d5076dfa authored by Oliver Bartsch's avatar Oliver Bartsch
Browse files

[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: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarBenni Mack <benni@typo3.org>
parent 9f26d583
Branches
Tags
No related merge requests found
...@@ -148,8 +148,8 @@ class TcaGroup implements FormDataProviderInterface ...@@ -148,8 +148,8 @@ class TcaGroup implements FormDataProviderInterface
} }
} else { } else {
throw new \UnexpectedValueException( throw new \UnexpectedValueException(
'Invalid TCA internal_type of field "' . $fieldName . '" in table ' . $result['tableName'] 'Invalid TCA internal_type "' . $internalType . '" for field "' . $fieldName
. ': Must not be set, or set to "folder".', . '" of table "' . $result['tableName'] . '". Valid values are "db" (default) and "folder".',
1438780511 1438780511
); );
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment