Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Improve Twitter API error message text [ci skip]

  • Loading branch information...
commit fa314d7ad69cc1027b64549962c1ef7035f4c440 1 parent 98f8d6a
Gina Trapani ginatrapani authored
3  webapp/plugins/twitter/model/class.CrawlerTwitterAPIAccessorOAuth.php
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.