We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08fe7fe commit 79b38c5Copy full SHA for 79b38c5
src/MailchimpLists.php
@@ -583,8 +583,7 @@ public function getListsForEmail($email) {
583
if ($e->getCode() !== 404) {
584
// 404 indicates the email address is not subscribed to this list
585
// and can be safely ignored. Surface all other exceptions.
586
- throw new MailchimpAPIException($e->getResponse()
587
- ->getBody(), $e->getCode(), $e);
+ throw new MailchimpAPIException($e->getMessage(), $e->getCode(), $e);
588
}
589
590
0 commit comments