From 6545fed34ad8061c293f3975801eb4ff9eea10f2 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 10 Apr 2024 17:26:52 +0200 Subject: [PATCH] fix(notifications): Throw AlreadyProcessedException also from the manager when it's done Signed-off-by: Joas Schilling --- lib/private/Notification/Manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Notification/Manager.php b/lib/private/Notification/Manager.php index df9d338beb0..d31de6f7950 100644 --- a/lib/private/Notification/Manager.php +++ b/lib/private/Notification/Manager.php @@ -355,7 +355,7 @@ class Manager implements IManager { $notification = $notifier->prepare($notification, $languageCode); } catch (AlreadyProcessedException $e) { $this->markProcessed($notification); - throw new \InvalidArgumentException('The given notification has been processed'); + throw $e; } catch (UnknownNotificationException) { continue; } catch (\InvalidArgumentException $e) { -- 2.39.5