Server exception error pages by default with a 500 status code
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
+1
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user