File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
apps/files_reminders/lib/Service Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2828
2929use DateTime ;
3030use DateTimeZone ;
31- use InvalidArgumentException ;
3231use OCA \FilesReminders \AppInfo \Application ;
3332use OCA \FilesReminders \Db \Reminder ;
3433use OCA \FilesReminders \Db \ReminderMapper ;
4140use OCP \IUserManager ;
4241use OCP \Notification \IManager as INotificationManager ;
4342use Psr \Log \LoggerInterface ;
43+ use Throwable ;
4444
4545class ReminderService {
4646 public function __construct (
@@ -113,8 +113,8 @@ public function send(Reminder $reminder): void {
113113 try {
114114 $ this ->notificationManager ->notify ($ notification );
115115 $ this ->reminderMapper ->markNotified ($ reminder );
116- } catch (InvalidArgumentException $ e ) {
117- $ this ->logger ->error (' Failed to send reminder notification ' , $ e ->getTrace ());
116+ } catch (Throwable $ th ) {
117+ $ this ->logger ->error ($ th -> getMessage () , $ th ->getTrace ());
118118 }
119119 }
120120
You can’t perform that action at this time.
0 commit comments