summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-07-14 10:12:32 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-07-14 10:12:32 +0200
commit5cd7f7eccdb94a9d41cb0e05ae19038124e20953 (patch)
tree11443827043e5b6520c680eb53303bfc3ec0d153
parenteab11169244d06eae0be869874f28db652f7ec6b (diff)
parent3d6be69f25d1bffc17d252b6e230fecf3618ac9b (diff)
downloadnextcloud-server-5cd7f7eccdb94a9d41cb0e05ae19038124e20953.tar.gz
nextcloud-server-5cd7f7eccdb94a9d41cb0e05ae19038124e20953.zip
Merge pull request #17623 from owncloud/fed-throwcorrectexception
Throw storage not available on guzzle error
-rw-r--r--apps/files_sharing/lib/external/storage.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/external/storage.php b/apps/files_sharing/lib/external/storage.php
index 3284a60172f..dc8d1738b05 100644
--- a/apps/files_sharing/lib/external/storage.php
+++ b/apps/files_sharing/lib/external/storage.php
@@ -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);