diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-06-10 13:45:19 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-06-10 13:45:19 +0200 |
commit | 8dc6bdd96b9088b87fe8d11346338343135c77e7 (patch) | |
tree | 2f969c8b9a0572d7e4648c9ad8ff2524bdaf27af /index.php | |
parent | c0bdbd9d81eb22ded95cd7ea9b26a0c36cfa1be0 (diff) | |
download | nextcloud-server-8dc6bdd96b9088b87fe8d11346338343135c77e7.tar.gz nextcloud-server-8dc6bdd96b9088b87fe8d11346338343135c77e7.zip |
clean up usage of DatabaseSetupException and catch Exceptions in entrypoints
Diffstat (limited to 'index.php')
-rwxr-xr-x | index.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/index.php b/index.php index bf0b287a64b..a064aa5c76f 100755 --- a/index.php +++ b/index.php @@ -23,6 +23,15 @@ $RUNTIME_NOAPPS = true; //no apps, yet -require_once 'lib/base.php'; +try { + + require_once 'lib/base.php'; -OC::handleRequest(); + OC::handleRequest(); + +} catch (Exception $ex) { + //show the user a detailed error page + OC_Response::setStatus(OC_Response::STATUS_INTERNAL_SERVER_ERROR); + \OCP\Util::writeLog('remote', $ex->getMessage(), \OCP\Util::FATAL); + OC_Template::printExceptionErrorPage($ex); +}
\ No newline at end of file |