mirror of
https://github.com/SophiaAtkinson/steamwidgets-web.git
synced 2026-01-17 07:24:56 -08: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