We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6d0644d + c223beb commit 7656b73Copy full SHA for 7656b73
1 file changed
src/Client.php
@@ -65,9 +65,12 @@ public function run(Request $request) : Response
65
$info = (array) \curl_getinfo($handle);
66
}
67
if ($body === false) {
68
+ $error = \curl_error($handle);
69
+ $errno = \curl_errno($handle);
70
+ @\curl_close($handle);
71
throw new RequestException(
- \curl_error($handle),
- \curl_errno($handle),
72
+ $error,
73
+ $errno,
74
info: $info
75
);
76
0 commit comments