Skip to content
Prev Previous commit
Next Next commit
fix(notifications): Throw AlreadyProcessedException also from the man…
…ager when it's done

Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Apr 12, 2024
commit 6545fed34ad8061c293f3975801eb4ff9eea10f2
2 changes: 1 addition & 1 deletion lib/private/Notification/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ public function prepare(INotification $notification, string $languageCode): INot
$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) {
Expand Down