mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-09 12:42:36 +01:00
Brought back error page in production
This commit is contained in:
parent
4a8c02d5fd
commit
0c27e22b51
@ -71,11 +71,10 @@ class Handler extends ExceptionHandler {
|
||||
}
|
||||
}
|
||||
|
||||
return parent::render($request, $e);
|
||||
|
||||
/*
|
||||
// In production, except for maintenance mode, we'll show a custom error screen
|
||||
if (Utils::isNinjaProd() && !Utils::isDownForMaintenance()) {
|
||||
if (Utils::isNinjaProd()
|
||||
&& !Utils::isDownForMaintenance()
|
||||
&& !($e instanceof HttpResponseException)) {
|
||||
$data = [
|
||||
'error' => get_class($e),
|
||||
'hideHeader' => true,
|
||||
@ -85,6 +84,5 @@ class Handler extends ExceptionHandler {
|
||||
} else {
|
||||
return parent::render($request, $e);
|
||||
}
|
||||
*/
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user