From 7ecddae1f5ed1036b03c946f8b87381162263c81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Lys=C3=BD?= Date: Wed, 3 Nov 2021 16:18:54 +0100 Subject: [PATCH] Improve error message [MAILPOET-3865] --- lib/API/JSON/v1/Subscribers.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/API/JSON/v1/Subscribers.php b/lib/API/JSON/v1/Subscribers.php index 7c9557c2fd..7f4a7db5fd 100644 --- a/lib/API/JSON/v1/Subscribers.php +++ b/lib/API/JSON/v1/Subscribers.php @@ -1,4 +1,4 @@ -confirmationEmailMailer->sendConfirmationEmail($subscriber)) { return $this->successResponse(); } - return $this->errorResponse(); + return $this->errorResponse([ + APIError::UNKNOWN => __('There was a problem with your sending method. Please check if your sending method is properly configured.', 'mailpoet'), + ]); } else { return $this->errorResponse([ APIError::NOT_FOUND => WPFunctions::get()->__('This subscriber does not exist.', 'mailpoet'),