[Mailer] added debug info on HTTP transport exceptions
This commit is contained in:
parent
5d5e04bea9
commit
4cfb4b95d6
@ -47,14 +47,11 @@ abstract class AbstractHttpTransport extends AbstractTransport
|
|||||||
$response = null;
|
$response = null;
|
||||||
try {
|
try {
|
||||||
$response = $this->doSendHttp($message);
|
$response = $this->doSendHttp($message);
|
||||||
|
$message->appendDebug($response->getInfo('debug'));
|
||||||
} catch (HttpTransportException $e) {
|
} catch (HttpTransportException $e) {
|
||||||
$response = $e->getResponse();
|
$e->appendDebug($e->getResponse()->getInfo('debug'));
|
||||||
|
|
||||||
throw $e;
|
throw $e;
|
||||||
} finally {
|
|
||||||
if (null !== $response) {
|
|
||||||
$message->appendDebug($response->getInfo('debug'));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user