Minor changes to two error messages.

This commit is contained in:
Christopher Vrooman 2012-02-19 14:47:49 -02:00
parent 943d928084
commit 585f1e2c31

View file

@ -828,7 +828,7 @@ class CakeEmail {
$this->_messageId = $message;
} else {
if (!preg_match('/^\<.+@.+\>$/', $message)) {
throw new SocketException(__d('cake_dev', 'Invalid format to Message-ID. The text should be something like "<uuid@server.com>"'));
throw new SocketException(__d('cake_dev', 'Invalid format for Message-ID. The text should be something like "<uuid@server.com>"'));
}
$this->_messageId = $message;
}
@ -957,7 +957,7 @@ class CakeEmail {
throw new SocketException(__d('cake_dev', 'From is not specified.'));
}
if (empty($this->_to) && empty($this->_cc) && empty($this->_bcc)) {
throw new SocketException(__d('cake_dev', 'You need specify one destination on to, cc or bcc.'));
throw new SocketException(__d('cake_dev', 'You need to specify at least one destination for to, cc or bcc.'));
}
if (is_array($content)) {