mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-14 00:04:24 +00:00
Fix #2179
This commit is contained in:
@@ -92,6 +92,12 @@ class Handler extends ExceptionHandler
|
||||
return response()->json(['message' => 'Internal Firefly III Exception. See log files.', 'exception' => get_class($exception)], 500);
|
||||
}
|
||||
|
||||
if($exception instanceof NotFoundHttpException) {
|
||||
$handler = app(GracefulNotFoundHandler::class);
|
||||
return $handler->render($request, $exception);
|
||||
}
|
||||
|
||||
|
||||
if ($exception instanceof FireflyException || $exception instanceof ErrorException || $exception instanceof OAuthServerException) {
|
||||
$isDebug = config('app.debug');
|
||||
|
||||
|
Reference in New Issue
Block a user