diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2016-03-03 01:15:36 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2016-03-03 01:15:41 +0100 |
commit | adf5d111f6e3cc58e0ed71764d401ac5bad9fa4b (patch) | |
tree | 6d31a0ad0c5265d72fbbae01b13c2a767bd486a2 /lib | |
parent | 8a2323563255f21d50def6be8232b387f24bb0d2 (diff) | |
download | nextcloud-server-adf5d111f6e3cc58e0ed71764d401ac5bad9fa4b.tar.gz nextcloud-server-adf5d111f6e3cc58e0ed71764d401ac5bad9fa4b.zip |
don't hide server not available exception, fixes #20536
Diffstat (limited to 'lib')
-rw-r--r-- | lib/base.php | 3 |
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 |