diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2016-03-03 01:15:36 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2016-03-08 13:01:48 +0100 |
commit | 88232ba2933ddf4dac46c3be7e51cb842d2466fe (patch) | |
tree | 5d72e746343ab4abd2c1fd9c41be532ce803e14c | |
parent | a74a7d069ef847ce151a9af661156c889571d5e1 (diff) | |
download | nextcloud-server-88232ba2933ddf4dac46c3be7e51cb842d2466fe.tar.gz nextcloud-server-88232ba2933ddf4dac46c3be7e51cb842d2466fe.zip |
don't hide server not available exception, fixes #20536
-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 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 |