Remove catch block and change quotes
Remove catch block to log unexpected exceptions and change quotes for consistency on error message. [MAILPOET-4259]
This commit is contained in:
@@ -229,7 +229,7 @@ class SubscriberSaveController {
|
||||
private function verifyEmailIsUnique(string $email): void {
|
||||
$existingSubscriber = $this->subscribersRepository->findOneBy(['email' => $email]);
|
||||
if ($existingSubscriber) {
|
||||
$exceptionMessage = __(sprintf("A subscriber with E-mail '%s' already exists.", $email), 'mailpoet');
|
||||
$exceptionMessage = __(sprintf('A subscriber with E-mail "%s" already exists.', $email), 'mailpoet');
|
||||
throw new ConflictException($exceptionMessage);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user