Skip to content

Commit b841e18

Browse files
committed
don't call getResponse() on RequestExceptionInterface
1 parent f94de3b commit b841e18

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Collector/Formatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function __construct(MessageFormatter $formatter, CurlCommandFormatter $c
5151
*/
5252
public function formatException(Exception $exception)
5353
{
54-
if ($exception instanceof HttpException || $exception instanceof RequestExceptionInterface) {
54+
if ($exception instanceof HttpException) {
5555
return $this->formatter->formatResponse($exception->getResponse());
5656
}
5757

Collector/ProfileClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ private function collectResponseInformations(ResponseInterface $response, Stopwa
183183
*/
184184
private function collectExceptionInformations(\Exception $exception, StopwatchEvent $event, Stack $stack)
185185
{
186-
if ($exception instanceof HttpException || $exception instanceof RequestExceptionInterface) {
186+
if ($exception instanceof HttpException) {
187187
$this->collectResponseInformations($exception->getResponse(), $event, $stack);
188188
}
189189

0 commit comments

Comments
 (0)