Skip to content

Commit

Permalink
Fix error code check.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Dec 25, 2018
1 parent 0be30d0 commit 8e795a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Client/Adapter/Curl.php
Expand Up @@ -44,7 +44,7 @@ public function send(Request $request, array $options)
curl_close($ch);

$status = 500;
if ($error === 28) {
if ($errorCode === 28) {
$status = 504;
}
throw new HttpException("cURL Error ({$errorCode}) {$error}", $status);
Expand Down

0 comments on commit 8e795a1

Please sign in to comment.