Properly catch guzzle 503 when querying share info

remotes/origin/poc-doctrine-migrations
Vincent Petry 11 years ago
parent de4a81f462
commit 4feb97d8e4
  1. 5
      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;
}

Loading…
Cancel
Save