diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-06-26 11:27:43 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-06-26 12:44:24 +0300 |
commit | 1399f6bece1ff44c062acb21bf880c9d6eb8695e (patch) | |
tree | dafb9c77674fecdab62a85c43277f85186d1d35b /lib/base.php | |
parent | 8c155cd51cb55c89f16d9bcfcb397d4e784ac108 (diff) |
Server exception error pages by default with a 500 status code
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/base.php b/lib/base.php index 54cbc700ec3..60a4c03bc41 100644 --- a/lib/base.php +++ b/lib/base.php @@ -434,8 +434,7 @@ class OC { } catch (Exception $e) { \OC::$server->getLogger()->logException($e, ['app' => 'base']); //show the user a detailed error page - OC_Response::setStatus(OC_Response::STATUS_INTERNAL_SERVER_ERROR); - OC_Template::printExceptionErrorPage($e); + OC_Template::printExceptionErrorPage($e, \OC_Response::STATUS_INTERNAL_SERVER_ERROR); die(); } |