From adf5d111f6e3cc58e0ed71764d401ac5bad9fa4b Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Thu, 3 Mar 2016 01:15:36 +0100 Subject: [PATCH] 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 b462a49fc9..9db4a482f2 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