Author: ks156
Date: 2009-10-19 14:47:35 +0200 (Mon, 19 Oct 2009)
New Revision: 5730

Modified:
   
software_suite_v3/software/plugin/plugin-twitter/trunk/plugin-twitter/src/TwitterPlugin.java
Log:
* Detect when the login is not correct (error 401) and warn the user.


Modified: 
software_suite_v3/software/plugin/plugin-twitter/trunk/plugin-twitter/src/TwitterPlugin.java
===================================================================
--- 
software_suite_v3/software/plugin/plugin-twitter/trunk/plugin-twitter/src/TwitterPlugin.java
        2009-10-19 11:59:12 UTC (rev 5729)
+++ 
software_suite_v3/software/plugin/plugin-twitter/trunk/plugin-twitter/src/TwitterPlugin.java
        2009-10-19 12:47:35 UTC (rev 5730)
@@ -341,7 +341,14 @@
                {
                        if ( ! this.getCommand().equalsIgnoreCase("check") )
                        {
-                               throwMessage("Twitter is busy for now, please, 
try later.");
+                               if (badRequest.getMessage().contains("401"))
+                               {
+                                       throwMessage("Sorry, there was an error 
when connecting to Twitter. Please check your Twitter configuration.");
+                               }
+                               else
+                               {
+                                       throwMessage("Twitter is busy for now, 
please, try later.");
+                               }
                        }
                                
                        this.quitGadget();


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to