pombreda / gcalcli

Automatically exported from code.google.com/p/gcalcli
0 stars 0 forks source link

Login error to show if error was in user_id / pw or in connection #22

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
More verbose login would be nice. I have no idea why my login fails (likely
proxy) Even simple as following except in login would help a bit. As with
that i get 403 and know that is not my user name or pw.

except CaptchaRequired? :
 PrintErrMsg?("Error: Login failed - CaptchaRequired?!\n") 
 sys.exit(1) 

except BadAuthentication?:
 PrintErrMsg?("Error: Login failed - Service rejected username or
password!\n") 
 sys.exit(1) 
except:
 PrintErrMsg?("Error: Login faild - 403!\n") sys.exit(1) 

Original issue reported on code.google.com by goole...@gmail.com on 12 Feb 2008 at 12:17

GoogleCodeExporter commented 9 years ago
edit source around line 300:
        except gdata.service.Error, message:
            print message
            sys.exit(1)

Original comment by tanaka...@gmail.com on 9 Apr 2008 at 12:18

GoogleCodeExporter commented 9 years ago
Fixed.  I've incorporated a proper error message that will show the error from 
gdata.

Original comment by eda...@insanum.com on 24 Jul 2011 at 6:55

GoogleCodeExporter commented 9 years ago

Original comment by eda...@insanum.com on 27 Jul 2011 at 4:59