Browse Source
show storage as unavailable in the file list
Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/6196/head
Robin Appelman
8 years ago
committed by
Morris Jobke
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
1 changed files with
2 additions and
1 deletions
-
apps/files_external/lib/Lib/Backend/InvalidBackend.php
|
|
|
@ -23,6 +23,7 @@ namespace OCA\Files_External\Lib\Backend; |
|
|
|
|
|
|
|
use OCA\Files_External\Lib\Storage\InvalidStorage; |
|
|
|
use OCA\Files_External\Lib\StorageConfig; |
|
|
|
use OCP\Files\StorageNotAvailableException; |
|
|
|
use OCP\IUser; |
|
|
|
|
|
|
|
/** |
|
|
|
@ -58,7 +59,7 @@ class InvalidBackend extends Backend { |
|
|
|
} |
|
|
|
|
|
|
|
public function manipulateStorageConfig(StorageConfig &$storage, IUser $user = null) { |
|
|
|
$storage->setBackendOption('exception', new \Exception('Unknown storage backend ' . $this->invalidId)); |
|
|
|
$storage->setBackendOption('exception', new \Exception('Unknown storage backend "' . $this->invalidId . '"', StorageNotAvailableException::STATUS_ERROR)); |
|
|
|
} |
|
|
|
} |
|
|
|
|