Skip to content

Commit

Permalink
Fix handle unknown error in MailTransport
Browse files Browse the repository at this point in the history
Fix handle unknown error in MailTransport
  • Loading branch information
MichalWadowski committed Jul 2, 2014
1 parent d845848 commit d5bce53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Network/Email/MailTransport.php
Expand Up @@ -68,7 +68,7 @@ protected function _mail($to, $subject, $message, $headers, $params = null) {
//@codingStandardsIgnoreStart
if (!@mail($to, $subject, $message, $headers, $params)) {
$error = error_get_last();
$msg = 'Could not send email: ' . isset($error['message']) ? $error['message'] : 'unknown';
$msg = 'Could not send email: ' . (isset($error['message']) ? $error['message'] : 'unknown');
throw new Error\SocketException($msg);
}
//@codingStandardsIgnoreEnd
Expand Down

0 comments on commit d5bce53

Please sign in to comment.