Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2016-03-03 03:15:36 +0300
committerArthur Schiwon <blizzz@owncloud.com>2016-03-08 14:40:12 +0300
commit213dfa2b85aab5b30862ef0141157f8b8993d09c (patch)
treec299eef6eb3ca1c9e60bf295641ec198913f2f2f /lib
parent9232a124e22e65dbdb36e6b103bf6791e04cb140 (diff)
don't hide server not available exception, fixes #20536
Diffstat (limited to 'lib')
-rw-r--r--lib/base.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php
index b462a49fc9b..9db4a482f23 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -714,6 +714,9 @@ class OC {
try {
$cache = new \OC\Cache\File();
$cache->gc();
+ } catch (\OC\ServerNotAvailableException $e) {
+ // not a GC exception, pass it on
+ throw $e;
} catch (\Exception $e) {
// a GC exception should not prevent users from using OC,
// so log the exception