mirror of
https://github.com/flarum/core.git
synced 2025-07-23 09:41:26 +02: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:
@@ -6,4 +6,8 @@ use Exception;
|
|||||||
|
|
||||||
class RouteNotFoundException extends Exception
|
class RouteNotFoundException extends Exception
|
||||||
{
|
{
|
||||||
|
public function __construct($message = null, $code = 404, Exception $previous = null)
|
||||||
|
{
|
||||||
|
parent::__construct($message, $code, $previous);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user