summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/config/configadapter.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/lib/config/configadapter.php')
-rw-r--r--apps/files_external/lib/config/configadapter.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_external/lib/config/configadapter.php b/apps/files_external/lib/config/configadapter.php
index f097d55a316..d85e0f45631 100644
--- a/apps/files_external/lib/config/configadapter.php
+++ b/apps/files_external/lib/config/configadapter.php
@@ -35,6 +35,7 @@ use OCA\Files_external\Service\UserStoragesService;
use OCA\Files_External\Service\UserGlobalStoragesService;
use OCA\Files_External\Lib\StorageConfig;
use OCA\Files_External\Lib\FailedStorage;
+use OCP\Files\StorageNotAvailableException;
/**
* Make the old files_external config work with the new public mount config api
@@ -134,7 +135,9 @@ class ConfigAdapter implements IMountProvider {
try {
$availability = $impl->getAvailability();
if (!$availability['available'] && !Availability::shouldRecheck($availability)) {
- $impl = new FailedStorage(['exception' => null]);
+ $impl = new FailedStorage([
+ 'exception' => new StorageNotAvailableException('Storage with mount id ' . $storage->getId() . ' is not available')
+ ]);
}
} catch (\Exception $e) {
// propagate exception into filesystem