[Mailer] fixed wrong error message when connection closes unexpectedly

This commit is contained in:
Fabien Potencier 2019-08-03 11:34:36 +02:00
parent e248345e5d
commit 887f27d513

View File

@ -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;