There was an error while loading. Please reload this page.
1 parent 1285c8c commit 57100feCopy full SHA for 57100fe
1 file changed
apps/dav/lib/CardDAV/Notification/Notifier.php
@@ -8,7 +8,6 @@
8
*/
9
namespace OCA\DAV\CardDAV\Notification;
10
11
-use InvalidArgumentException;
12
use OCA\DAV\AppInfo\Application;
13
use OCP\IL10N;
14
use OCP\L10N\IFactory;
@@ -42,7 +41,7 @@ public function getName(): string {
42
41
43
public function prepare(INotification $notification, string $languageCode): INotification {
44
if ($notification->getApp() !== Application::APP_ID) {
45
- throw new InvalidArgumentException();
+ throw new UnknownNotificationException();
46
}
47
48
$l = $this->l10nFactory->get(Application::APP_ID, $languageCode);
0 commit comments