Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
show storage as unavailable in the file list
Signed-off-by: Robin Appelman <[email protected]>
  • Loading branch information
icewind1991 authored and MorrisJobke committed Sep 4, 2017
commit e9a58f857903512ba7d0d2a1078551706be906fb
3 changes: 2 additions & 1 deletion apps/files_external/lib/Lib/Backend/InvalidBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

use OCA\Files_External\Lib\Storage\InvalidStorage;
use OCA\Files_External\Lib\StorageConfig;
use OCP\Files\StorageNotAvailableException;
use OCP\IUser;

/**
Expand Down Expand Up @@ -58,7 +59,7 @@ public function getInvalidId() {
}

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