Skip to content

Commit

Permalink
Bad handling TransportException
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentineBoineau committed Oct 21, 2020
1 parent 53f146b commit 1ab562a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sdk/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
use SensioLabs\Insight\Sdk\Model\Project;
use SensioLabs\Insight\Sdk\Model\Projects;
use Symfony\Contracts\HttpClient\Exception\ClientExceptionInterface;
use Symfony\Contracts\HttpClient\Exception\ExceptionInterface;
use Symfony\Contracts\HttpClient\Exception\HttpExceptionInterface;
use Symfony\Contracts\HttpClient\Exception\ServerExceptionInterface;
use Symfony\Contracts\HttpClient\Exception\TransportExceptionInterface;
Expand Down Expand Up @@ -271,7 +272,7 @@ private function processClientError(HttpExceptionInterface $e)
throw new ApiClientException($message, $error, 0, $e);
}

private function logException(HttpExceptionInterface $e)
private function logException(ExceptionInterface $e)
{
$message = sprintf("Exception: Class: \"%s\", Message: \"%s\", Response:\n%s",
\get_class($e),
Expand Down

0 comments on commit 1ab562a

Please sign in to comment.