summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-02-04 16:24:41 +0100
committerRobin Appelman <icewind@owncloud.com>2016-02-04 16:33:08 +0100
commite420ae068cffc58670ddace5f8567ecd9aacfa5b (patch)
tree045d5b9600f787c51bcfac2f7f2833fd3a94ac47 /apps/files_external/lib
parent53fbaf70c0de8a82ccf598fadfefad01c7845eda (diff)
downloadnextcloud-server-e420ae068cffc58670ddace5f8567ecd9aacfa5b.tar.gz
nextcloud-server-e420ae068cffc58670ddace5f8567ecd9aacfa5b.zip
handle exception in availibilty check
Diffstat (limited to 'apps/files_external/lib')
-rw-r--r--apps/files_external/lib/config/configadapter.php11
1 files 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(