From 2e3a5ccaaa1a64617980cd086a3dc13a9058892b Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 1 Feb 2016 14:45:14 +0100 Subject: [PATCH] show failed external storages properly --- apps/files_external/lib/config/configadapter.php | 5 +++++ 1 file changed, 5 insertions(+) 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(), -- 2.39.5