show failed external storages properly

This commit is contained in:
Robin Appelman 2016-02-01 14:45:14 +01:00
parent 4b4bf87f95
commit 2e3a5ccaaa
1 changed files with 5 additions and 0 deletions

View File

@ -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(),