diff --git a/app/code/core/Mage/Core/Model/Email/Queue.php b/app/code/core/Mage/Core/Model/Email/Queue.php index 39eae3f04b8..121a260c8a7 100644 --- a/app/code/core/Mage/Core/Model/Email/Queue.php +++ b/app/code/core/Mage/Core/Model/Email/Queue.php @@ -93,7 +93,8 @@ protected function _afterSave() protected function _beforeSave() { if (empty($this->_recipients) || !is_array($this->_recipients) || empty($this->_recipients[0])) { // additional check of recipients information (email address) - Mage::throwException(Mage::helper('core')->__('Message recipients data must be set.')); + $error = Mage::helper('core')->__('Message recipients data must be set.'); + Mage::throwException("{$error} - ID: " . $this->getId()); } return parent::_beforeSave(); }