Fixed probelm with maintenance mode
This commit is contained in:
parent
3d88ec5c6d
commit
608d6c1831
1 changed files with 3 additions and 2 deletions
|
|
@ -47,8 +47,9 @@ class Handler extends ExceptionHandler {
|
|||
if ($e instanceof ModelNotFoundException) {
|
||||
return Redirect::to('/');
|
||||
}
|
||||
|
||||
if (Utils::isNinjaProd()) {
|
||||
|
||||
// In production, except for maintenance mode, we'll show a custom error screen
|
||||
if (Utils::isNinjaProd() && $e->getStatusCode() != 503) {
|
||||
$data = [
|
||||
'error' => get_class($e),
|
||||
'hideHeader' => true,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue