Skip to content

Commit

Permalink
added response contents
Browse files Browse the repository at this point in the history
  • Loading branch information
ilzrv committed May 31, 2023
1 parent 5a1f738 commit f19d213
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/SteamAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ public function auth(): void
$contents = $response->getBody()->getContents();

if (preg_match("#is_valid\s*:\s*true#i", $contents) !== 1) {
throw new SteamResponseNotValidAuthenticationException();
throw new SteamResponseNotValidAuthenticationException(
sprintf('Steam response contains invalid content: "%s"', $contents)
);
}

$query = $this->parseUriQueryString();
Expand Down

0 comments on commit f19d213

Please sign in to comment.