Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Improve Twitter API error message text [ci skip]
  • Loading branch information
ginatrapani committed Sep 7, 2012
1 parent 98f8d6a commit fa314d7
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -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
Expand Down

0 comments on commit fa314d7

Please sign in to comment.