diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-06-26 10:27:43 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-06-26 11:44:24 +0200 |
commit | 1399f6bece1ff44c062acb21bf880c9d6eb8695e (patch) | |
tree | dafb9c77674fecdab62a85c43277f85186d1d35b /remote.php | |
parent | 8c155cd51cb55c89f16d9bcfcb397d4e784ac108 (diff) | |
download | nextcloud-server-1399f6bece1ff44c062acb21bf880c9d6eb8695e.tar.gz nextcloud-server-1399f6bece1ff44c062acb21bf880c9d6eb8695e.zip |
Server exception error pages by default with a 500 status code
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'remote.php')
-rw-r--r-- | remote.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/remote.php b/remote.php index 38c349bd7bd..d90bb2d8ee5 100644 --- a/remote.php +++ b/remote.php @@ -80,8 +80,7 @@ function handleException($e) { OC_Template::printErrorPage($e->getMessage(), '', $e->getCode()); } else { \OC::$server->getLogger()->logException($e, ['app' => 'remote']); - OC_Response::setStatus($statusCode); - OC_Template::printExceptionErrorPage($e); + OC_Template::printExceptionErrorPage($e, $statusCode); } } } |