diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2016-03-03 01:15:36 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2016-03-08 12:40:12 +0100 |
commit | 213dfa2b85aab5b30862ef0141157f8b8993d09c (patch) | |
tree | c299eef6eb3ca1c9e60bf295641ec198913f2f2f /lib/base.php | |
parent | 9232a124e22e65dbdb36e6b103bf6791e04cb140 (diff) | |
download | nextcloud-server-213dfa2b85aab5b30862ef0141157f8b8993d09c.tar.gz nextcloud-server-213dfa2b85aab5b30862ef0141157f8b8993d09c.zip |
don't hide server not available exception, fixes #20536
Diffstat (limited to 'lib/base.php')
-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 |