Skip to content

Commit

Permalink
throw exception bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Tamás KIRÁLY committed Jun 4, 2023
1 parent f402e51 commit d7d51d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NTAKClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
);
}

Expand Down

0 comments on commit d7d51d9

Please sign in to comment.