Merge pull request #22800 from owncloud/fix-20536
don't hide server not available exception, fixes #20536
This commit is contained in:
commit
6acde90e2c
|
@ -714,6 +714,9 @@ class OC {
|
||||||
try {
|
try {
|
||||||
$cache = new \OC\Cache\File();
|
$cache = new \OC\Cache\File();
|
||||||
$cache->gc();
|
$cache->gc();
|
||||||
|
} catch (\OC\ServerNotAvailableException $e) {
|
||||||
|
// not a GC exception, pass it on
|
||||||
|
throw $e;
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
// a GC exception should not prevent users from using OC,
|
// a GC exception should not prevent users from using OC,
|
||||||
// so log the exception
|
// so log the exception
|
||||||
|
|
Loading…
Reference in New Issue