Returns last unprocessed subscriber in error message

This commit is contained in:
Vlad
2017-02-16 22:47:32 -05:00
parent c9519f0b3d
commit bdcfd77d42
5 changed files with 11 additions and 6 deletions

View File

@@ -30,6 +30,7 @@ class SendGrid {
$response = (!empty($response['errors'][0])) ?
$response['errors'][0] :
sprintf(__('%s has returned an unknown error.', 'mailpoet'), Mailer::METHOD_SENDGRID);
$response .= sprintf(' %s: %s', __('Unprocessed subscriber', 'mailpoet'), $subscriber);
return Mailer::formatMailerSendErrorResult($response);
}
return Mailer::formatMailerSendSuccessResult();