More consistent error handling.

This commit is contained in:
James Cole
2016-02-06 05:01:34 +01:00
parent 69d0c31ae5
commit 241190c4da
7 changed files with 25 additions and 24 deletions

View File

@@ -37,9 +37,15 @@ class Handler extends ExceptionHandler
*/
public function render($request, Exception $exception)
{
if ($exception instanceof FireflyException) {
return response()->view('errors.FireflyException', ['exception' => $exception], 500);
}
return parent::render($request, $exception);
}
/**
* Report or log an exception.
*