Skip to content

Commit

Permalink
Remove incorrect exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
ashkarpetin committed May 20, 2019
1 parent 03a017c commit 40f8377
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,7 @@ public function send($method, $payload, $path, $params = [], array $headers = []
$response = call_user_func($this->middleware, $request, $response, $this);

if ($response->getStatusCode() === 404) {
$content = json_decode($response->getBody()->getContents(), true);

throw new Http\Exception\NotFoundException($content['message'] ?? '');
throw new Http\Exception\NotFoundException();
}

if ($response->getStatusCode() === 410) {
Expand Down

0 comments on commit 40f8377

Please sign in to comment.