Skip to content

Commit e806eeb

Browse files
committed
fix: handle InvalidArumentException as availability failure in smb->getFileInfo
1 parent acb3e68 commit e806eeb

File tree

1 file changed

+2
-0
lines changed
  • apps/files_external/lib/Lib/Storage

1 file changed

+2
-0
lines changed

apps/files_external/lib/Lib/Storage/SMB.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ protected function getFileInfo(string $path): IFileInfo {
172172
}
173173
} catch (ConnectException $e) {
174174
$this->throwUnavailable($e);
175+
} catch (InvalidArgumentException $e) {
176+
$this->throwUnavailable($e);
175177
} catch (NotFoundException $e) {
176178
throw new \OCP\Files\NotFoundException($e->getMessage(), 0, $e);
177179
} catch (ForbiddenException $e) {

0 commit comments

Comments
 (0)