first log the exception

This commit is contained in:
Thomas Müller 2013-09-15 21:20:22 +02:00
parent ad82a56f79
commit 5acb3c4c0d
1 changed files with 1 additions and 1 deletions

View File

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