handle exception in availibilty check
This commit is contained in:
parent
53fbaf70c0
commit
e420ae068c
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue