@@ -89,7 +89,7 @@ class HttpKernel implements HttpKernelInterface
// load controller
// load controller
if (false === $controller = $this->resolver->getController($request)) {
if (false === $controller = $this->resolver->getController($request)) {
- throw new NotFoundHttpException(sprintf('Unable to find the controller for "%s", check your route configuration.', $request->getPathInfo()));
+ throw new NotFoundHttpException(sprintf('Unable to find the controller for path "%s". Maybe you forgot to add the matching route in your routing configuration?', $request->getPathInfo()))
@@ -186,7 +186,7 @@ abstract class Kernel implements KernelInterface
public function getBundle($name, $first = true)
public function getBundle($name, $first = true)
{
{
if (!isset($this->bundleMap[$name])) {
if (!isset($this->bundleMap[$name])) {
- throw new \InvalidArgumentException(sprintf('Bundle "%s" does not exist or it is not enabled.', $name));
+ throw new \InvalidArgumentException(sprintf('Bundle "%s" does not exist or it is not enabled. Maybe you forgot to add it in the registerBundles() function of your %s.php file?', $name, get_class($this)));