Skip to content

Commit

Permalink
Update GetClient.php
Browse files Browse the repository at this point in the history
Tabs
  • Loading branch information
lashnag authored Jul 19, 2018
1 parent 9979a6f commit 8df58f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/clients/GetClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ public function sendRequest(BaseRequest $service) {
$this->logger->log(self::LOG_LEVEL, 'Response '.$response);
}

if(curl_errno($curl)){
throw new SdkException(curl_error($curl), curl_errno($curl));
}
if(curl_errno($curl)){
throw new SdkException(curl_error($curl), curl_errno($curl));
}

$httpCode = curl_getinfo($curl, CURLINFO_HTTP_CODE);
$httpCode = curl_getinfo($curl, CURLINFO_HTTP_CODE);
if ($httpCode !== HttpCodes::CODE_200) {
throw new SdkException('Service error. Wrong http code '.$httpCode, $httpCode);
}
Expand Down

0 comments on commit 8df58f5

Please sign in to comment.