summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2016-03-03 01:15:36 +0100
committerArthur Schiwon <blizzz@owncloud.com>2016-03-08 13:01:48 +0100
commit88232ba2933ddf4dac46c3be7e51cb842d2466fe (patch)
tree5d72e746343ab4abd2c1fd9c41be532ce803e14c
parenta74a7d069ef847ce151a9af661156c889571d5e1 (diff)
downloadnextcloud-server-88232ba2933ddf4dac46c3be7e51cb842d2466fe.tar.gz
nextcloud-server-88232ba2933ddf4dac46c3be7e51cb842d2466fe.zip
don't hide server not available exception, fixes #20536
-rw-r--r--lib/base.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php
index bb6027370bf..f0a29ec39f3 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -733,6 +733,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