mirror of
https://github.com/nextcloud/server.git
synced 2026-03-09 09:51:03 -04:00
Merge pull request #58453 from nextcloud/bugfix/noid/update-notifier-exception-handling
fix(notifications): Update notifier exception handling
This commit is contained in:
commit
346c4bd69a
1 changed files with 1 additions and 2 deletions
|
|
@ -8,7 +8,6 @@ declare(strict_types=1);
|
|||
*/
|
||||
namespace OCA\DAV\CardDAV\Notification;
|
||||
|
||||
use InvalidArgumentException;
|
||||
use OCA\DAV\AppInfo\Application;
|
||||
use OCP\IL10N;
|
||||
use OCP\L10N\IFactory;
|
||||
|
|
@ -42,7 +41,7 @@ class Notifier implements INotifier {
|
|||
*/
|
||||
public function prepare(INotification $notification, string $languageCode): INotification {
|
||||
if ($notification->getApp() !== Application::APP_ID) {
|
||||
throw new InvalidArgumentException();
|
||||
throw new UnknownNotificationException();
|
||||
}
|
||||
|
||||
$l = $this->l10nFactory->get(Application::APP_ID, $languageCode);
|
||||
|
|
|
|||
Loading…
Reference in a new issue