[HttpKernel] Added path to controller not found exception

This commit is contained in:
Jordi Boggiano 2011-01-23 02:44:43 +01:00 committed by Fabien Potencier
parent eb8b3d9c21
commit 74272e02da

View File

@ -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));