dont die if the external storage backend doesn't exist
This commit is contained in:
parent
308aaf89cd
commit
90ff4641e7
1 changed files with 19 additions and 10 deletions
|
@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue