mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Properly catch guzzle 503 when querying share info
This commit is contained in:
parent
de4a81f462
commit
4feb97d8e4
1 changed files with 5 additions and 0 deletions
5
apps/files_sharing/lib/external/storage.php
vendored
5
apps/files_sharing/lib/external/storage.php
vendored
|
|
@ -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…
Reference in a new issue