handle exception in availibilty check

This commit is contained in:
Robin Appelman 2016-02-04 16:24:41 +01:00
parent 53fbaf70c0
commit e420ae068c
1 changed files with 8 additions and 3 deletions

View File

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