diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php index 163526cdfbd..a043ee68219 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -1486,7 +1486,7 @@ class Manager implements IManager { foreach ($uids as $uid) { $user = $this->userManager->get($uid); if ($user?->isEnabled() === false) { - throw new ShareNotFound($this->l->t('The requested share comes from a disabled user')); + throw new ShareNotFound($this->l->t('The requested share does not exist anymore')); } } } diff --git a/tests/lib/Share20/ManagerTest.php b/tests/lib/Share20/ManagerTest.php index aa87f71e079..cdbb36ac78d 100644 --- a/tests/lib/Share20/ManagerTest.php +++ b/tests/lib/Share20/ManagerTest.php @@ -3304,7 +3304,7 @@ class ManagerTest extends \Test\TestCase { public function testGetShareByTokenHideDisabledUser(): void { $this->expectException(ShareNotFound::class); - $this->expectExceptionMessage('The requested share comes from a disabled user'); + $this->expectExceptionMessage('The requested share does not exist anymore'); $this->config ->expects($this->exactly(2))