summaryrefslogtreecommitdiffstats
path: root/apps/files_reminders/lib
diff options
context:
space:
mode:
authorChristopher Ng <chrng8@gmail.com>2023-07-31 12:10:50 -0700
committerChristopher Ng <chrng8@gmail.com>2023-08-08 16:29:12 -0700
commit3f668f3944dd6ca03360f08a7a672c93b5a2b463 (patch)
tree3758bc0966148992928c0b15607e145cf943c2f1 /apps/files_reminders/lib
parentc0f327d6503a0c90bdf330df0babf36a9f3e06bc (diff)
downloadnextcloud-server-3f668f3944dd6ca03360f08a7a672c93b5a2b463.tar.gz
nextcloud-server-3f668f3944dd6ca03360f08a7a672c93b5a2b463.zip
fix: catch Throwable
Signed-off-by: Christopher Ng <chrng8@gmail.com> (cherry picked from commit 7637bf2ae04d5558b5771b62cd17b6bc7321ba44)
Diffstat (limited to 'apps/files_reminders/lib')
-rw-r--r--apps/files_reminders/lib/Service/ReminderService.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_reminders/lib/Service/ReminderService.php b/apps/files_reminders/lib/Service/ReminderService.php
index b24a685e3bc..ad230474923 100644
--- a/apps/files_reminders/lib/Service/ReminderService.php
+++ b/apps/files_reminders/lib/Service/ReminderService.php
@@ -28,7 +28,6 @@ namespace OCA\FilesReminders\Service;
use DateTime;
use DateTimeZone;
-use InvalidArgumentException;
use OCA\FilesReminders\AppInfo\Application;
use OCA\FilesReminders\Db\Reminder;
use OCA\FilesReminders\Db\ReminderMapper;
@@ -41,6 +40,7 @@ use OCP\IUser;
use OCP\IUserManager;
use OCP\Notification\IManager as INotificationManager;
use Psr\Log\LoggerInterface;
+use Throwable;
class ReminderService {
public function __construct(
@@ -113,8 +113,8 @@ class ReminderService {
try {
$this->notificationManager->notify($notification);
$this->reminderMapper->markNotified($reminder);
- } catch (InvalidArgumentException $e) {
- $this->logger->error('Failed to send reminder notification', $e->getTrace());
+ } catch (Throwable $th) {
+ $this->logger->error($th->getMessage(), $th->getTrace());
}
}