Add soft level errors distinction for Amazon SES service

[MAILPOET-1154]
This commit is contained in:
Rostislav Wolny
2018-09-11 12:50:17 +02:00
parent db3ddd22f1
commit 6df1db933e
3 changed files with 75 additions and 5 deletions

View File

@@ -70,7 +70,7 @@ class AmazonSES {
$this->request($newsletter, $subscriber, $extra_params)
);
} catch(\Exception $e) {
$error = $this->error_mapper->getErrorFromException($e);
$error = $this->error_mapper->getErrorFromException($e, $subscriber);
return Mailer::formatMailerErrorResult($error);
}
if(is_wp_error($result)) {