This commit is contained in:
James Cole
2019-08-01 06:22:07 +02:00
parent b049ca27f1
commit 81dce5d7c7
10 changed files with 384 additions and 33 deletions

View File

@@ -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');