first log the exception
This commit is contained in:
parent
ad82a56f79
commit
5acb3c4c0d
|
@ -31,7 +31,7 @@ try {
|
||||||
|
|
||||||
} catch (Exception $ex) {
|
} catch (Exception $ex) {
|
||||||
//show the user a detailed error page
|
//show the user a detailed error page
|
||||||
OC_Response::setStatus(OC_Response::STATUS_INTERNAL_SERVER_ERROR);
|
|
||||||
\OCP\Util::writeLog('index', $ex->getMessage(), \OCP\Util::FATAL);
|
\OCP\Util::writeLog('index', $ex->getMessage(), \OCP\Util::FATAL);
|
||||||
|
OC_Response::setStatus(OC_Response::STATUS_INTERNAL_SERVER_ERROR);
|
||||||
OC_Template::printExceptionErrorPage($ex);
|
OC_Template::printExceptionErrorPage($ex);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue