mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 18:12:59 +08:00
Default to 404 code for RouteNotFoundException
Just want to get Stratigility’s FinalHandler showing something more apt than “Internal server error”
This commit is contained in:
parent
d34ddd94ed
commit
6a248ea6a6
|
@ -6,4 +6,8 @@ use Exception;
|
|||
|
||||
class RouteNotFoundException extends Exception
|
||||
{
|
||||
public function __construct($message = null, $code = 404, Exception $previous = null)
|
||||
{
|
||||
parent::__construct($message, $code, $previous);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user