[TASK] Improve error message in NotFoundView to identify source 28/21728/3
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 15:57:03 +0000 (17:57 +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/21728
Reviewed-by: Cedric Ziel
Tested-by: Cedric Ziel
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php

index e9d9c25..4db549e 100644 (file)
@@ -358,7 +358,8 @@ class ActionController extends \TYPO3\CMS\Extbase\Mvc\Controller\AbstractControl
                }
                if (!isset($view)) {
                        $view = $this->objectManager->get('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')) {