Skip to content

Commit

Permalink
Agregada gestión de errores en CurlHelper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianVillamayor committed Apr 24, 2024
1 parent 05833e9 commit ae27370
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/CurlHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,9 @@ public function execute(): void
$this->prepareRequest();
$this->setCurlOptions();
$this->response = curl_exec($this->ch);

if ($this->response === false) {
throw new \Exception(curl_error($this->ch), curl_errno($this->ch));
}

$this->error = curl_error($this->ch);
$this->errno = curl_errno($this->ch);

$this->postExecution();
} finally {
Expand Down

0 comments on commit ae27370

Please sign in to comment.