Merge pull request #17623 from owncloud/fed-throwcorrectexception
Throw storage not available on guzzle error
This commit is contained in:
commit
5cd7f7eccd
|
@ -253,7 +253,7 @@ class Storage extends DAV implements ISharedStorage {
|
|||
// throw this to be on the safe side: the share will still be visible
|
||||
// in the UI in case the failure is intermittent, and the user will
|
||||
// be able to decide whether to remove it if it's really gone
|
||||
throw new NotFoundException();
|
||||
throw new StorageNotAvailableException();
|
||||
}
|
||||
|
||||
return json_decode($response->getBody(), true);
|
||||
|
|
Loading…
Reference in New Issue