aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-07-24 17:18:10 +0200
committerRobin Appelman <icewind@owncloud.com>2014-08-04 13:41:04 +0200
commita05147e25c87e320b9dd3d95d244109d88057e62 (patch)
tree7ea4c45e39312e4e565c0c6d454720fea30de57a /index.php
parent4608f8a3b5f3f88ce033817f682103c31f8a934f (diff)
downloadnextcloud-server-a05147e25c87e320b9dd3d95d244109d88057e62.tar.gz
nextcloud-server-a05147e25c87e320b9dd3d95d244109d88057e62.zip
handle service not available exceptions in index, remote and public.php
Diffstat (limited to 'index.php')
-rwxr-xr-xindex.php6
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);