mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
fix: handle InvalidArumentException as availability failure in smb->getFileInfo
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
dc323ee347
commit
75339c9b34
1 changed files with 2 additions and 0 deletions
|
|
@ -169,6 +169,8 @@ class SMB extends Common implements INotifyStorage {
|
|||
}
|
||||
} catch (ConnectException $e) {
|
||||
$this->throwUnavailable($e);
|
||||
} catch (InvalidArgumentException $e) {
|
||||
$this->throwUnavailable($e);
|
||||
} catch (NotFoundException $e) {
|
||||
throw new \OCP\Files\NotFoundException($e->getMessage(), 0, $e);
|
||||
} catch (ForbiddenException $e) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue