mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixed probelm with maintenance mode
This commit is contained in:
parent
3d88ec5c6d
commit
608d6c1831
@ -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…
x
Reference in New Issue
Block a user