Skip to content

Commit

Permalink
Throw 404 exception is no routes match the uri. Fixes #3643
Browse files Browse the repository at this point in the history
  • Loading branch information
zombor committed Jan 24, 2011
1 parent bb61e72 commit fdabce3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions classes/kohana/request.php
Expand Up @@ -692,10 +692,7 @@ public function __construct($uri, Kohana_Cache $cache = NULL)
return;
}

// No matching route for this URI
$this->_status = 404;

throw new Kohana_Request_Exception('Unable to find a route to match the URI: :uri',
throw new Http_Exception_404('Unable to find a route to match the URI: :uri',
array(':uri' => $uri));
}
else
Expand Down

0 comments on commit fdabce3

Please sign in to comment.