mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
committed by
Neil Lathwood
parent
83f414552d
commit
4c8ec59098
@@ -66,7 +66,11 @@ class Handler extends ExceptionHandler
|
|||||||
return $exception->render($request);
|
return $exception->render($request);
|
||||||
}
|
}
|
||||||
|
|
||||||
return parent::render($request, $exception);
|
if (config('app.debug')) {
|
||||||
|
return parent::render($request, $exception);
|
||||||
|
}
|
||||||
|
|
||||||
|
return view('errors.generic')->with('exception', $exception);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
67
resources/views/errors/generic.blade.php
Normal file
67
resources/views/errors/generic.blade.php
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user