Skip to content
Snippets Groups Projects
Commit f3ff8583 authored by Thomas Müller's avatar Thomas Müller
Browse files

Merge pull request #20641 from owncloud/files_external_missing_backend

dont die if the external storage backend doesn't exist
parents 427d107b 90ff4641
Branches
No related tags found
No related merge requests found
......@@ -221,6 +221,7 @@ abstract class StoragesService {
$currentStorage->setMountPoint($relativeMountPath);
}
try {
$this->populateStorageConfigWithLegacyOptions(
$currentStorage,
$mountType,
......@@ -233,6 +234,14 @@ abstract class StoragesService {
} else {
$storagesWithConfigHash[$configId] = $currentStorage;
}
} catch (\UnexpectedValueException $e) {
// dont die if a storage backend doesn't exist
\OCP\Util::writeLog(
'files_external',
'Could not load storage: "' . $e->getMessage() . '"',
\OCP\Util::ERROR
);
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment