mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Update Exception handler
This commit is contained in:
parent
d820669bd1
commit
c481e473d8
1 changed files with 12 additions and 0 deletions
|
@ -41,6 +41,18 @@ class Handler extends ExceptionHandler
|
||||||
parent::report($exception);
|
parent::report($exception);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Register the exception handling callbacks for the application.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function register()
|
||||||
|
{
|
||||||
|
$this->reportable(function (\BadMethodCallException $e) {
|
||||||
|
return app()->environment() !== 'production';
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Render an exception into an HTTP response.
|
* Render an exception into an HTTP response.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue