diff --git a/src/Types/Player.php b/src/Types/Player.php index 23269ad..9d1fa76 100644 --- a/src/Types/Player.php +++ b/src/Types/Player.php @@ -61,7 +61,7 @@ public function __construct(ResponseInterface $response) $json = json_decode((string)$response->getBody(), true, 512, JSON_BIGINT_AS_STRING); if ($json['error']) { - throw new PlayerNotFoundException($json['descriptor']); + throw new PlayerNotFoundException($json['response']); } $this->id = $json['response']['id'];