OAuth2 only raises OAuth2::Error exceptions. While this is the correct behavior (it's a general purpose tool and shouldn't have to know anything about specific Google+ errors), it makes debugging a real pain in Gplus.
Gplus needs to raise sensible, Google+ specific exceptions, including the error messages returned from Google+.
@tompata, you mentioned in #1 that "debugging is very difficult now". How are you currently debugging Gplus, and is it more difficult in 2.0.0? Would Gplus raising specific exceptions (instead of not catching OAuth2::Errors) be helpful?
OAuth2 only raises
OAuth2::Errorexceptions. While this is the correct behavior (it's a general purpose tool and shouldn't have to know anything about specific Google+ errors), it makes debugging a real pain in Gplus.Gplus needs to raise sensible, Google+ specific exceptions, including the error messages returned from Google+.
@tompata, you mentioned in #1 that "debugging is very difficult now". How are you currently debugging Gplus, and is it more difficult in 2.0.0? Would Gplus raising specific exceptions (instead of not catching
OAuth2::Errors) be helpful?