From 35200de65363308d1614666232dce5be317c1ddf Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Thu, 3 Mar 2016 01:15:36 +0100 Subject: don't hide server not available exception, fixes #20536 --- lib/base.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/base.php b/lib/base.php index 5ce5fae3fde..e9787dc16a8 100644 --- a/lib/base.php +++ b/lib/base.php @@ -706,6 +706,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 -- cgit v1.2.3