Skip to content

Commit 57100fe

Browse files
committed
fix(notifications): Update notifier exception handling
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 1285c8c commit 57100fe

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)