Skip to content

Commit

Permalink
fix: debugging account picture #000
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushik.prajapati committed Jan 27, 2020
1 parent 7de5498 commit 828ea17
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Client.php
Expand Up @@ -284,11 +284,19 @@ public function getData($uri, $jsonData = null)
}

$json = curl_exec($ch);

if($json === false)
{
throw new RuntimeException('Curl error: '.curl_error($ch));
}

$info = curl_getinfo($ch);
$code = $this->getStatusCode($ch);
if ($this->timeDataCollector) {
$this->timeDataCollector->stopMeasure('getData');
}


if (200 != $code) {
throw new RuntimeException('HTTP Status code: '.$code.'message: '.$json);
}
Expand Down

0 comments on commit 828ea17

Please sign in to comment.