[TASK] Show expected targetType on "Object not found" errors
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Classes / Property / TypeConverter / PersistentObjectConverter.php
index 708e232..2144296 100644 (file)
@@ -207,7 +207,7 @@ class PersistentObjectConverter extends ObjectConverter {
                }
 
                if ($object === NULL) {
-                       throw new \TYPO3\CMS\Extbase\Property\Exception\TargetNotFoundException('Object with identity "' . print_r($identity, TRUE) . '" not found.', 1297933823);
+                       throw new \TYPO3\CMS\Extbase\Property\Exception\TargetNotFoundException(sprintf('Object of type %s with identity "%s" not found.', $targetType, print_r($identity, TRUE)), 1297933823);
                }
 
                return $object;