Permalink
Browse files

Improve Twitter API error message text [ci skip]

  • Loading branch information...
1 parent 98f8d6a commit fa314d7ad69cc1027b64549962c1ef7035f4c440 @ginatrapani ginatrapani committed Sep 7, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 webapp/plugins/twitter/model/class.CrawlerTwitterAPIAccessorOAuth.php
View
3 webapp/plugins/twitter/model/class.CrawlerTwitterAPIAccessorOAuth.php
@@ -130,7 +130,8 @@ public function init() {
$this->api_hourly_limit = $status['hourly-limit'];//get this from API
$this->next_api_reset = $status['reset-time'];//get this from API
} else {
- throw new Exception('API status came back malformed');
+ throw new Exception('Unable to obtain account status. Twitter API returned: "'.
+ Utils::varDumpToString($status).'"');
}
//Figure out how many minutes are left in the hour, then multiply that x 1 for api calls
//to leave unmade

0 comments on commit fa314d7

Please sign in to comment.