From e420ae068cffc58670ddace5f8567ecd9aacfa5b Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 4 Feb 2016 16:24:41 +0100 Subject: [PATCH] handle exception in availibilty check --- apps/files_external/lib/config/configadapter.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/apps/files_external/lib/config/configadapter.php b/apps/files_external/lib/config/configadapter.php index 2142da90bc5..51c2debd726 100644 --- a/apps/files_external/lib/config/configadapter.php +++ b/apps/files_external/lib/config/configadapter.php @@ -130,9 +130,14 @@ class ConfigAdapter implements IMountProvider { $impl = new FailedStorage(['exception' => $e]); } - $availability = $impl->getAvailability(); - if (!$availability['available']) { - $impl = new FailedStorage(['exception' => null]); + try { + $availability = $impl->getAvailability(); + if (!$availability['available']) { + $impl = new FailedStorage(['exception' => null]); + } + } catch (\Exception $e) { + // propagate exception into filesystem + $impl = new FailedStorage(['exception' => $e]); } $mount = new MountPoint( -- 2.39.5