From 5c61b4bee3157f736e8499f236576369e8b14158 Mon Sep 17 00:00:00 2001 From: Santiago Date: Tue, 25 Oct 2016 17:40:32 -0300 Subject: [PATCH] Improved webhook error message to display the URL that is not reachable by MailChimp. --- app/code/community/Ebizmarts/MailChimp/Model/Observer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/community/Ebizmarts/MailChimp/Model/Observer.php b/app/code/community/Ebizmarts/MailChimp/Model/Observer.php index e8e446cf0..0d460de7d 100755 --- a/app/code/community/Ebizmarts/MailChimp/Model/Observer.php +++ b/app/code/community/Ebizmarts/MailChimp/Model/Observer.php @@ -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) {