diff options
author | Robin Appelman <robin@icewind.nl> | 2017-09-01 15:52:17 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-09-04 11:54:13 +0200 |
commit | e9a58f857903512ba7d0d2a1078551706be906fb (patch) | |
tree | 83f02acd8d7eb13e927ee6833687b397a0181009 /apps/files_external | |
parent | 68ee79b5957d31d6b6e1dd32dea757c8e08024f1 (diff) | |
download | nextcloud-server-e9a58f857903512ba7d0d2a1078551706be906fb.tar.gz nextcloud-server-e9a58f857903512ba7d0d2a1078551706be906fb.zip |
show storage as unavailable in the file list
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_external')
-rw-r--r-- | apps/files_external/lib/Lib/Backend/InvalidBackend.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_external/lib/Lib/Backend/InvalidBackend.php b/apps/files_external/lib/Lib/Backend/InvalidBackend.php index 0d51669b3ca..6c8eda22d07 100644 --- a/apps/files_external/lib/Lib/Backend/InvalidBackend.php +++ b/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)); } } |