summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-02-01 14:45:14 +0100
committerRobin Appelman <icewind@owncloud.com>2016-02-04 16:33:08 +0100
commit2e3a5ccaaa1a64617980cd086a3dc13a9058892b (patch)
tree66d8b20b6deddf4ecbcf75a0e360caa8b4726ce0
parent4b4bf87f95f1f6bce4072c9447b45b21c8fac6a6 (diff)
downloadnextcloud-server-2e3a5ccaaa1a64617980cd086a3dc13a9058892b.tar.gz
nextcloud-server-2e3a5ccaaa1a64617980cd086a3dc13a9058892b.zip
show failed external storages properly
-rw-r--r--apps/files_external/lib/config/configadapter.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files_external/lib/config/configadapter.php b/apps/files_external/lib/config/configadapter.php
index 2bf39bcaa4f..2142da90bc5 100644
--- a/apps/files_external/lib/config/configadapter.php
+++ b/apps/files_external/lib/config/configadapter.php
@@ -130,6 +130,11 @@ class ConfigAdapter implements IMountProvider {
$impl = new FailedStorage(['exception' => $e]);
}
+ $availability = $impl->getAvailability();
+ if (!$availability['available']) {
+ $impl = new FailedStorage(['exception' => null]);
+ }
+
$mount = new MountPoint(
$impl,
'/' . $user->getUID() . '/files' . $storage->getMountPoint(),