This commit is contained in:
Yuri Kuznetsov
2023-08-09 08:18:49 +03:00
parent 174a86b497
commit bfeb504243

View File

@@ -310,7 +310,12 @@ class RecoveryService
$this->createCleanupRequestJob($entity->getId(), $lifetime);
$this->send($entity->getRequestId(), $emailAddress, $user);
try {
$this->send($entity->getRequestId(), $emailAddress, $user);
}
catch (SendingError $e) {
throw new Error("Email sending error. " . $e->getMessage());
}
return $entity;
}