Skip to content

Commit

Permalink
Improved webhook error message to display the URL that is not reachab…
Browse files Browse the repository at this point in the history
…le by MailChimp.
  • Loading branch information
Santiagoebizmarts committed Oct 25, 2016
1 parent 290ccea commit 5c61b4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/community/Ebizmarts/MailChimp/Model/Observer.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ protected function _createWebhook($listId)
Mage::getSingleton('adminhtml/session')->addError($e->getFriendlyMessage());
$textToCompare = 'The resource submitted could not be validated. For field-specific details, see the \'errors\' array.';
if ($e->getMailchimpDetails() == $textToCompare) {
$errorMessage = 'Your store could not be accessed by MailChimp\'s Api. Please confirm the site is accessible externally to allow the webhook creation.';
$errorMessage = 'Your store could not be accessed by MailChimp\'s Api. Please confirm the URL: '. $hookUrl .' is accessible externally to allow the webhook creation.';
Mage::getSingleton('adminhtml/session')->addError($errorMessage);
}
} catch (Exception $e) {
Expand Down

0 comments on commit 5c61b4b

Please sign in to comment.