From f19d2132ea7cf25450bd18e47699f2cbbff8d927 Mon Sep 17 00:00:00 2001 From: Ilia Lazarev Date: Wed, 31 May 2023 19:30:45 +0300 Subject: [PATCH] added response contents --- src/SteamAuthenticator.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SteamAuthenticator.php b/src/SteamAuthenticator.php index 16d293a..6faed0f 100644 --- a/src/SteamAuthenticator.php +++ b/src/SteamAuthenticator.php @@ -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();