From c48581b029d6474e00e562304490e6de2f4663d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tama=CC=81s=20KIRA=CC=81LY?= Date: Mon, 5 Jun 2023 01:35:36 +0200 Subject: [PATCH] truncated guzzle reponses removed --- src/NTAKClient.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/NTAKClient.php b/src/NTAKClient.php index 02c1120..534357d 100644 --- a/src/NTAKClient.php +++ b/src/NTAKClient.php @@ -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() ); }