From e9a58f857903512ba7d0d2a1078551706be906fb Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 1 Sep 2017 15:52:17 +0200 Subject: [PATCH] show storage as unavailable in the file list Signed-off-by: Robin Appelman --- apps/files_external/lib/Lib/Backend/InvalidBackend.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); } }