diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-04-10 00:23:05 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-04-10 00:23:05 +0200 |
commit | 43b503641c9f3cc705f4a5c318c4122d00f8940a (patch) | |
tree | 5742f04848c75ab8907a9954ce0805077058bc37 /apps | |
parent | 02614d214e3ddc2234d570635adfb7eaa4d70ba1 (diff) | |
parent | 4feb97d8e428635f2c445b9ab0be24a90f6dfa16 (diff) | |
download | nextcloud-server-43b503641c9f3cc705f4a5c318c4122d00f8940a.tar.gz nextcloud-server-43b503641c9f3cc705f4a5c318c4122d00f8940a.zip |
Merge pull request #15521 from owncloud/shareinfo-catchguzzle503
Properly catch guzzle 503 when querying share info
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/external/storage.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/external/storage.php b/apps/files_sharing/lib/external/storage.php index 91beccf7491..0238f5ad4af 100644 --- a/apps/files_sharing/lib/external/storage.php +++ b/apps/files_sharing/lib/external/storage.php @@ -199,6 +199,11 @@ class Storage extends DAV implements ISharedStorage { $this->manager->removeShare($this->mountPoint); $this->manager->getMountManager()->removeMount($this->mountPoint); throw new StorageInvalidException(); + } catch (\GuzzleHttp\Exception\RequestException $e) { + if ($e->getCode() === 503) { + throw new StorageNotAvailableException(); + } + throw $e; } catch (\Exception $e) { throw $e; } |