Skip to content
Snippets Groups Projects
Commit 43b50364 authored by Morris Jobke's avatar Morris Jobke
Browse files

Merge pull request #15521 from owncloud/shareinfo-catchguzzle503

Properly catch guzzle 503 when querying share info
parents 02614d21 4feb97d8
Branches
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment