oauth/oauth-ruby — pull request #41 by alexch (2011-11-07 14:07:54+00:00)
Title: better error message for failed authentication attempt

This code is not really intended for production use, but I thought I'd show you what I had to do in order to get a sensible error message and properly debug my code.

A real patch would probably change the base OAuth::Problem class, have it take a request *or* a response or both (right now it only takes a request), and read some data out of it and put it in the exception message string (which, let's face it, is all people ever see when something goes wrong).

Let me know if you want me to do that work. I'm pretty busy but I'll try to squeeze it in. In the meantime, this hack is better than what's there now, so you may want to just accept it and then add an issue to improve it.