Skip to content

Commit

Permalink
Merge pull request #92 from ValentineBoineau/transport-error
Browse files Browse the repository at this point in the history
Bad handling TransportException
  • Loading branch information
tgalopin committed Oct 21, 2020
2 parents 1efb748 + 1ab562a commit 8f092fc
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 Symfony\Component\HttpClient\HttpClient;
use Symfony\Component\HttpClient\ScopingHttpClient;
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 @@ -280,7 +281,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 8f092fc

Please sign in to comment.