From d7d51d92f446e0d5cdcbcc28819432612dd47140 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tama=CC=81s=20KIRA=CC=81LY?= Date: Mon, 5 Jun 2023 01:25:16 +0200 Subject: [PATCH] throw exception bug fixed --- src/NTAKClient.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NTAKClient.php b/src/NTAKClient.php index 45fabe9..02c1120 100644 --- a/src/NTAKClient.php +++ b/src/NTAKClient.php @@ -102,11 +102,11 @@ public function message(array $message, Carbon $when, string $uri): array } catch (ClientException $e) { throw new NTAKClientException( - $e->getResponse()->getBody()->getContents() + $e->getMessage() ); } catch (RequestException $e) { throw new NTAKClientException( - $e->getResponse()->getBody()->getContents() + $e->getMessage() ); }