Skip to content

Commit

Permalink
truncated guzzle reponses removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Tamás KIRÁLY committed Jun 4, 2023
1 parent d7d51d9 commit c48581b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/NTAKClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,13 @@ public function message(array $message, Carbon $when, string $uri): array
);

$this->lastRequestTime = Carbon::now()->diffInMilliseconds($start);

} catch (ClientException $e) {
} catch (RequestException $e) {
throw new NTAKClientException(
$e->getMessage()
);
} catch (RequestException $e) {
} catch (ClientException $e) {
throw new NTAKClientException(
$e->getMessage()
$e->getResponse()->getBody()->getContents()
);
}

Expand Down

0 comments on commit c48581b

Please sign in to comment.