Skip to content

Commit 63d402e

Browse files
authored
Added some specific debugging hint to email queue empty recipient error (#1386)
1 parent 85c99dc commit 63d402e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/core/Mage/Core/Model/Email/Queue.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ protected function _afterSave()
9393
protected function _beforeSave()
9494
{
9595
if (empty($this->_recipients) || !is_array($this->_recipients) || empty($this->_recipients[0])) { // additional check of recipients information (email address)
96-
Mage::throwException(Mage::helper('core')->__('Message recipients data must be set.'));
96+
$error = Mage::helper('core')->__('Message recipients data must be set.');
97+
Mage::throwException("{$error} - ID: " . $this->getId());
9798
}
9899
return parent::_beforeSave();
99100
}

0 commit comments

Comments
 (0)