Skip to content

Commit

Permalink
Better error message for failures during requestToken. Closes #50
Browse files Browse the repository at this point in the history
  • Loading branch information
cezarsa committed Jan 5, 2010
1 parent 0bf65e4 commit dace811
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/twitter_lib.js
Expand Up @@ -245,7 +245,8 @@ TwitterOAuth.prototype = {
if(!data) {
this.error = status;
console.log('requestTokenCallback error: ' + status);
alert("Ouch... Something bad happened to Chrome Bird while calling Twitter's API. Request token response: " + status + "\n\nPlease try clicking the icon again to restart the authentication process.");
alert("Ouch... Something bad happened to Chrome Bird while calling Twitter's API. Request token response: " + status +
"\n\nThis problem is probably due to incorrect date and time settings in your operating system. Please, review your settings and try again.");
return;
}
var paramMap = OAuth.getParameterMap(data);
Expand Down

0 comments on commit dace811

Please sign in to comment.