From 0f8c1b13a39541fecdb149f41e9904d89a60ea64 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 13 Jun 2017 18:44:14 +0200 Subject: Fix unknown share token Signed-off-by: Joas Schilling --- lib/private/Share20/Manager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/private/Share20') diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php index 06d03f2ec7c..57ba39d41f6 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -1090,7 +1090,7 @@ class Manager implements IManager { } if ($share === null) { - throw new ShareNotFound(); + throw new ShareNotFound($this->l->t('The requested share does not exist anymore')); } $this->checkExpireDate($share); @@ -1110,7 +1110,7 @@ class Manager implements IManager { if ($share->getExpirationDate() !== null && $share->getExpirationDate() <= new \DateTime()) { $this->deleteShare($share); - throw new ShareNotFound(); + throw new ShareNotFound($this->l->t('The requested share does not exist anymore')); } } -- cgit v1.2.3