Merge pull request #15521 from owncloud/shareinfo-catchguzzle503

Properly catch guzzle 503 when querying share info
This commit is contained in:
Morris Jobke 2015-04-10 00:23:05 +02:00
commit 43b503641c
1 changed files with 5 additions and 0 deletions

View File

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