1
0
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:
Hillel Coren 2016-04-18 20:17:02 +03:00
parent 4a8c02d5fd
commit 0c27e22b51

View File

@ -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);
}
*/
}
}