Skip to content

Commit

Permalink
fix(notifications): Throw AlreadyProcessedException also from the man…
Browse files Browse the repository at this point in the history
…ager when it's done

Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Apr 12, 2024
1 parent 0d0c2cd commit 6545fed
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 6545fed

Please sign in to comment.