Skip to content
Snippets Groups Projects
Commit 4feb97d8 authored by Vincent Petry's avatar Vincent Petry
Browse files

Properly catch guzzle 503 when querying share info

parent de4a81f4
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