Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
added logging of SE.API reponse when no items are found
  • Loading branch information
gooh committed May 20, 2012
1 parent 63a7197 commit 0afadc6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/mvc/model/StackExchange/Client.php
Expand Up @@ -25,6 +25,8 @@ public function findByIds(array $ids)
$result = $this->executeRequest($this->formatEndpoint($batch));
if (isset($result->items)) {
$data = array_merge($data, $result->items);
} else {
error_log("Error fetching batch $i: " . var_export($result, true));
}
}
return $data;
Expand Down

0 comments on commit 0afadc6

Please sign in to comment.