[TASK] Improve error message in NotFoundView to identify source 34/21734/2
authorClaus Due <claus@wildside.dk>
Sat, 29 Jun 2013 12:43:54 +0000 (14:43 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Sat, 29 Jun 2013 17:32:47 +0000 (19:32 +0200)
The error message before this change would only report the
action name, after this change it will reflect the controller and
extension name as well.

Set to apply to all maintained version since this changes no functions
whatsoever - it only improves error feedback.

Resolves: #49519
Releases: 6.2, 6.1, 6.0, 4.7, 4.5
Change-Id: I61dc32a4542b8664ca9443414278e983bc181c4a
Reviewed-on: https://review.typo3.org/21734
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php

index 009526e..01d0307 100644 (file)
@@ -341,7 +341,8 @@ class ActionController extends \TYPO3\CMS\Extbase\Mvc\Controller\AbstractControl
                }
                if (!isset($view)) {
                        $view = $this->objectManager->create('TYPO3\\CMS\\Extbase\\Mvc\\View\\NotFoundView');
-                       $view->assign('errorMessage', 'No template was found. View could not be resolved for action "' . $this->request->getControllerActionName() . '"');
+                       $view->assign('errorMessage', 'No template was found. View could not be resolved for action "'
+                               . $this->request->getControllerActionName() . '" in class "' . $this->request->getControllerObjectName() . '"');
                }
                $view->setControllerContext($this->controllerContext);
                if (method_exists($view, 'injectSettings')) {