Merge pull request #17623 from owncloud/fed-throwcorrectexception

Throw storage not available on guzzle error
This commit is contained in:
Morris Jobke 2015-07-14 10:12:32 +02:00
commit 5cd7f7eccd
1 changed files with 1 additions and 1 deletions

View File

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