first log the exception

remotes/origin/stable6
Thomas Müller 13 years ago
parent ad82a56f79
commit 5acb3c4c0d
  1. 2
      index.php

@ -31,7 +31,7 @@ try {
} catch (Exception $ex) {
//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);
OC_Response::setStatus(OC_Response::STATUS_INTERNAL_SERVER_ERROR);
OC_Template::printExceptionErrorPage($ex);
}

Loading…
Cancel
Save