Fix color & show error message

This commit is contained in:
Daniel Brendel
2023-02-02 13:24:50 +01:00
parent c318f0b937
commit 8a6434a2f9
3 changed files with 49 additions and 3 deletions

View File

@ -29,8 +29,9 @@ class SteamApp
$response = curl_exec($handle);
if(curl_error($handle) !== '') {
throw new \Exception('cURL error occured');
$curl_error = curl_error($handle);
if($curl_error !== '') {
throw new \Exception('cURL error occured: ' . $curl_error);
}
curl_close($handle);