[TASK] Make Exception message more helpful
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Core / Bootstrap.php
index b7ded39..129205e 100644 (file)
@@ -1037,7 +1037,10 @@ class Bootstrap {
                                /** @var $hookObject \TYPO3\CMS\Core\Database\TableConfigurationPostProcessingHookInterface */
                                $hookObject = Utility\GeneralUtility::getUserObj($classReference);
                                if (!$hookObject instanceof \TYPO3\CMS\Core\Database\TableConfigurationPostProcessingHookInterface) {
-                                       throw new \UnexpectedValueException('$hookObject must implement interface TYPO3\\CMS\\Core\\Database\\TableConfigurationPostProcessingHookInterface', 1320585902);
+                                       throw new \UnexpectedValueException(
+                                               '$hookObject "' . $classReference . '" must implement interface TYPO3\\CMS\\Core\\Database\\TableConfigurationPostProcessingHookInterface',
+                                               1320585902
+                                       );
                                }
                                $hookObject->processData();
                        }