Custom error page (#8911)

Generic error page, just a dump of the current page with additional information.

DO NOT DELETE THIS TEXT

#### Please note

> Please read this information carefully. You can run `./scripts/pre-commit.php` to check your code before submitting.

- [x] Have you followed our [code guidelines?](http://docs.librenms.org/Developing/Code-Guidelines/)

#### Testers

If you would like to test this pull request then please run: `./scripts/github-apply <pr_id>`, i.e `./scripts/github-apply 5926`
This commit is contained in:
Tony Murray
2018-07-17 15:15:11 -05:00
committed by Neil Lathwood
parent 83f414552d
commit 4c8ec59098
2 changed files with 72 additions and 1 deletions

View File

@ -66,9 +66,13 @@ class Handler extends ExceptionHandler
return $exception->render($request);
}
if (config('app.debug')) {
return parent::render($request, $exception);
}
return view('errors.generic')->with('exception', $exception);
}
/**
* Convert an authentication exception into an unauthenticated response.
*

File diff suppressed because one or more lines are too long