Skip to content

Commit 88dfa0f

Browse files
Andras Ratzfabpot
authored andcommitted
[HttpKernel] Change exception message in case no controller found
1 parent 38f4dee commit 88dfa0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

HttpKernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ private function handleRaw(Request $request, $type = self::MASTER_REQUEST)
131131

132132
// load controller
133133
if (false === $controller = $this->resolver->getController($request)) {
134-
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()));
134+
throw new NotFoundHttpException(sprintf('Unable to find the controller for path "%s". The route is wrongly configured.', $request->getPathInfo()));
135135
}
136136

137137
$event = new FilterControllerEvent($this, $controller, $request, $type);

0 commit comments

Comments
 (0)