Skip to content

Commit

Permalink
Remove attempts to call curl functions on false in error handler
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-pike committed Dec 21, 2023
1 parent 887fe39 commit 9a3bb9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ protected function prepRequest($opts, $url)

$curl = curl_init($url);
if ($curl === false) {
throw new Pest_Curl_Init($this->processError(curl_error($curl), 'curl'), curl_errno($curl));
throw new Pest_Curl_Init('Curl init failed');
}

foreach ($opts as $opt => $val)
Expand Down

0 comments on commit 9a3bb9c

Please sign in to comment.