We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 35d051c + 4efdbaf commit c8a4944Copy full SHA for c8a4944
src/Types/Player.php
@@ -61,7 +61,7 @@ public function __construct(ResponseInterface $response)
61
$json = json_decode((string)$response->getBody(), true, 512, JSON_BIGINT_AS_STRING);
62
63
if ($json['error']) {
64
- throw new PlayerNotFoundException($json['descriptor']);
+ throw new PlayerNotFoundException($json['response']);
65
}
66
67
$this->id = $json['response']['id'];
0 commit comments