]> source.dussan.org Git - nextcloud-server.git/commitdiff
handle exception in availibilty check
authorRobin Appelman <icewind@owncloud.com>
Thu, 4 Feb 2016 15:24:41 +0000 (16:24 +0100)
committerRobin Appelman <icewind@owncloud.com>
Thu, 4 Feb 2016 15:33:08 +0000 (16:33 +0100)
apps/files_external/lib/config/configadapter.php

index 2142da90bc55a5d23520eb07b3b4932ed85128e8..51c2debd7265590b83b708e084754a05f4f06ed3 100644 (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(