Skip to content

Commit

Permalink
Merge branch 'hotfix/ZF2-209' of https://github.com/mpinkston/zf2 int…
Browse files Browse the repository at this point in the history
…o hotfix/zf2-209
  • Loading branch information
weierophinney committed Mar 23, 2012
2 parents 647f23a + faf3829 commit 2c4fdd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/Zend/Mvc/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,13 +294,13 @@ public function route(MvcEvent $e)
$routeMatch = $router->match($request);

if (!$routeMatch instanceof Router\RouteMatch) {
$e->setError(static::ERROR_CONTROLLER_NOT_FOUND);
$e->setError(static::ERROR_ROUTER_NO_MATCH);

$results = $this->events()->trigger('dispatch.error', $e);
if (count($results)) {
$return = $results->last();
} else {
$return = $error->getParams();
$return = $e->getParams();
}
return $return;
}
Expand Down
1 change: 1 addition & 0 deletions library/Zend/Mvc/View/ExceptionStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ public function prepareExceptionViewModel(MvcEvent $e)
switch ($error) {
case Application::ERROR_CONTROLLER_NOT_FOUND:
case Application::ERROR_CONTROLLER_INVALID:
case Application::ERROR_ROUTER_NO_MATCH:
// Specifically not handling these
return;

Expand Down

0 comments on commit 2c4fdd4

Please sign in to comment.