diff options
Diffstat (limited to 'index.php')
-rwxr-xr-x | index.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/index.php b/index.php index bd94d0e908d..061391892fe 100755 --- a/index.php +++ b/index.php @@ -27,6 +27,12 @@ try { OC::handleRequest(); +} catch(\OC\ServiceUnavailableException $ex) { + \OCP\Util::logException('index', $ex); + + //show the user a detailed error page + OC_Response::setStatus(OC_Response::STATUS_SERVICE_UNAVAILABLE); + OC_Template::printExceptionErrorPage($ex); } catch (Exception $ex) { \OCP\Util::logException('index', $ex); |