don't hide server not available exception, fixes #20536

This commit is contained in:
Arthur Schiwon 2016-03-03 01:15:36 +01:00
parent 9232a124e2
commit 213dfa2b85

View file

@ -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