diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php index 35374fd167ccc..0f709482014da 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -542,7 +542,8 @@ protected function userCreateChecks(\OCP\Share\IShare $share) { $this->groupManager->getUserGroupIds($sharedWith) ); if (empty($groups)) { - throw new \Exception('Sharing is only allowed with group members'); + $message_t = $this->l->t('Sharing is only allowed with group members'); + throw new \Exception($message_t); } }