diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php index 7db6d8e4045da..e0f1a97a70542 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -192,7 +192,7 @@ protected function generalChecks(IShare $share): void { /** @psalm-suppress UndefinedClass */ $circle = Circles::detailsCircle($share->getSharedWith()); if ($circle === null) { - throw new \InvalidArgumentException($this->l->t('Share recipient is not a valid circle')); + throw new \InvalidArgumentException($this->l->t('Share recipient is not a valid team')); } } elseif ($share->getShareType() !== IShare::TYPE_ROOM && $share->getShareType() !== IShare::TYPE_DECK) { // We cannot handle other types yet