show storage as unavailable in the file list

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2017-09-01 15:52:17 +02:00 committed by Morris Jobke
parent 68ee79b595
commit e9a58f8579
No known key found for this signature in database
GPG key ID: FE03C3A163FEDE68

View file

@ -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));
}
}