Explorar o código

[HttpKernel] Added path to controller not found exception

Jordi Boggiano %!s(int64=14) %!d(string=hai) anos
pai
achega
74272e02da
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Symfony/Component/HttpKernel/HttpKernel.php

+ 1 - 1
src/Symfony/Component/HttpKernel/HttpKernel.php

@@ -89,7 +89,7 @@ class HttpKernel implements HttpKernelInterface
 
         // load controller
         if (false === $controller = $this->resolver->getController($request)) {
-            throw new NotFoundHttpException('Unable to find the controller.');
+            throw new NotFoundHttpException('Unable to find the controller for '.$request->getPathInfo().', check your route configuration.');
         }
 
         $event = new Event($this, 'core.controller', array('request_type' => $type, 'request' => $request));