Skip to content

Commit 2e2785b

Browse files
committed
minor #11769 [HttpKernel] Change exception message in case no controller found (ghostika)
This PR was squashed before being merged into the 2.6-dev branch (closes #11769). Discussion ---------- [HttpKernel] Change exception message in case no controller found | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #11754 | License | MIT | Doc PR | n/a Change the NotFoundHttpException message. Commits ------- b0a839c [HttpKernel] Change exception message in case no controller found
2 parents 0eea1d5 + 88dfa0f commit 2e2785b

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)