Skip to content

Commit 346c4bd

Browse files
Merge pull request #58453 from nextcloud/bugfix/noid/update-notifier-exception-handling
fix(notifications): Update notifier exception handling
2 parents a12808e + 57100fe commit 346c4bd

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

apps/dav/lib/CardDAV/Notification/Notifier.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
*/
99
namespace OCA\DAV\CardDAV\Notification;
1010

11-
use InvalidArgumentException;
1211
use OCA\DAV\AppInfo\Application;
1312
use OCP\IL10N;
1413
use OCP\L10N\IFactory;
@@ -42,7 +41,7 @@ public function getName(): string {
4241
*/
4342
public function prepare(INotification $notification, string $languageCode): INotification {
4443
if ($notification->getApp() !== Application::APP_ID) {
45-
throw new InvalidArgumentException();
44+
throw new UnknownNotificationException();
4645
}
4746

4847
$l = $this->l10nFactory->get(Application::APP_ID, $languageCode);

0 commit comments

Comments
 (0)