mirror of
https://github.com/SophiaAtkinson/steamwidgets-web.git
synced 2025-06-27 12:27:42 -07:00
Fix color & show error message
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user