Skip to content

Commit 291fb0d

Browse files
authored
Merge pull request #52192 from nextcloud/backport/52187/stable30
fix(tests): Share manager error message from #52076
2 parents f724102 + 2f1949a commit 291fb0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Share20/Manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ protected function pathCreateChecks($path) {
600600
$mounts = $this->mountManager->findIn($path->getPath());
601601
foreach ($mounts as $mount) {
602602
if ($mount->getStorage()->instanceOfStorage('\OCA\Files_Sharing\ISharedStorage')) {
603-
throw new \InvalidArgumentException('Path contains files shared with you');
603+
throw new \InvalidArgumentException('You cannot share a folder that contains other shares');
604604
}
605605
}
606606
}

0 commit comments

Comments
 (0)