[Mailer] fixed wrong error message when connection closes unexpectedly
This commit is contained in:
parent
e248345e5d
commit
887f27d513
@ -74,6 +74,9 @@ abstract class AbstractStream
|
||||
if ($metas['timed_out']) {
|
||||
throw new TransportException(sprintf('Connection to "%s" timed out.', $this->getReadConnectionDescription()));
|
||||
}
|
||||
if ($metas['eof']) {
|
||||
throw new TransportException(sprintf('Connection to "%s" has been closed unexpectedly.', $this->getReadConnectionDescription()));
|
||||
}
|
||||
}
|
||||
|
||||
return $line;
|
||||
|
Reference in New Issue
Block a user